We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1330404 commit 5e72476Copy full SHA for 5e72476
1 file changed
database/bin/boot
@@ -92,6 +92,11 @@ else
92
echo "database: existing data directory found. Starting postgres..."
93
fi
94
95
+# Explicitly correct permissions on this file. This compensates for the fact
96
+# it may have been initially written by root above, but more importantly, if
97
+# it's already owned by root, this will correct the permissions during upgrade.
98
+chown postgres:postgres /var/lib/postgresql/9.3/main/initialized
99
+
100
# run the service in the background
101
sudo -i -u postgres /usr/bin/postgres \
102
-c config-file="${PG_CONFIG:-/etc/postgresql/main/postgresql.conf}" \
0 commit comments