📝 Made note of postgres installation

This commit is contained in:
z3rOR0ne 2023-02-02 07:24:30 -08:00
parent 649ddde164
commit d8952a1b8d
2 changed files with 78 additions and 4 deletions

View file

@ -8,11 +8,11 @@ if [ "$PGROOT" != "/var/lib/postgres" ]; then
ln -sf "$PGROOT" /var/lib/postgres
fi
if [ ! -d "/var/run/postgresql" ]; then
echo "creating directory /var/run/postgresql"
if [ ! -d "/run/postgresql" ]; then
echo "creating directory /run/postgresql"
mkdir -p "/var/run/postgresql"
chown -R postgres:postgres "/var/run/postgresql"
mkdir -p "/run/postgresql"
chown -R postgres:postgres "/run/postgresql"
fi
if [ ! -d "$PGDATA" ]; then