X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=postgres%2Finstall.sh;h=f0336fed9f1cb2bde0a2b56faad6a301333751a9;hb=46445e9382905a52e770d44191235be179616049;hp=a8769f553560c54eec72a71b5b1493b5bf72f40a;hpb=76776e9d5403d59b2cd5cba16d84f819a56bc5aa;p=webi-installers%2F.git diff --git a/postgres/install.sh b/postgres/install.sh index a8769f5..f0336fe 100644 --- a/postgres/install.sh +++ b/postgres/install.sh @@ -11,7 +11,7 @@ pkg_get_current_version() { # postgres (PostgreSQL) 10.13 # This trims it down to just the version number: # 10.13 - echo "$(postgres --version 2>/dev/null | head -n 1 | cut -d' ' -f3)" + echo "$(postgres --version 2> /dev/null | head -n 1 | cut -d' ' -f3)" } pkg_install() { @@ -42,11 +42,11 @@ pkg_post_install() { chmod 0700 "$POSTGRES_DATA_DIR" if [ ! -f "$POSTGRES_DATA_DIR/postgresql.conf" ]; then - echo "postgres" > "$PWFILE" - "$pkg_src/bin/initdb" \ - -D "$POSTGRES_DATA_DIR/" \ - --username postgres --pwfile "$PWFILE" \ - --auth-local=password --auth-host=password + echo "postgres" > "$PWFILE" + "$pkg_src/bin/initdb" \ + -D "$POSTGRES_DATA_DIR/" \ + --username postgres --pwfile "$PWFILE" \ + --auth-local=password --auth-host=password fi } @@ -63,4 +63,3 @@ pkg_done_message() { echo " psql 'postgres://postgres:postgres@localhost:5432/postgres'" echo "" } -