mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2026-01-06 04:35:05 +01:00
Update nextcloud-install.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user