Update database-install.sh

This commit is contained in:
tschettervictor
2024-09-29 21:17:02 -06:00
committed by GitHub
parent 71cd5d0852
commit e8d74c32eb

View File

@@ -97,6 +97,7 @@ elif [ "${POSTGRESQL}" = 1 ]; then
sysrc postgresql_enable=yes
fetch -o /root/.pgpass https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/database/includes/pgpass
chmod 600 /root/.pgpass
sed -i '' "s|mypassword|${DB_ROOT_PASSWORD}|" /root/.pgpass
mkdir -p /var/db/postgres
chown postgres /var/db/postgres
service postgresql initdb