Update nextcloud-install.sh

This commit is contained in:
tschettervictor
2024-09-29 18:20:49 -06:00
committed by GitHub
parent 27a9acb390
commit 744152761c

View File

@@ -222,7 +222,7 @@ else
chmod 600 /root/.pgpass
chown postgres /var/db/postgres/
/usr/local/etc/rc.d/postgresql initdb
su -m postgres -c '/usr/local/bin/pg_ctl -D /var/db/postgres/data13 start'
su -m postgres -c '/usr/local/bin/pg_ctl -D /var/db/postgres/data'${PG_VERSION}' start'
sed -i '' "s|mypassword|${DB_ROOT_PASSWORD}|" /root/.pgpass
if ! psql -U postgres -c "CREATE DATABASE ${DB_NAME};" then
echo "Failed to create ${APP_NAME} database, aborting"