Commit 67c73b13 authored by Martin Pitt's avatar Martin Pitt

init.d-functions, start(): Update SELinux label of /run/postgresql if

restorecon is installed. Thanks Martin Lang! (Closes: #737661)
parent caea4c0f
......@@ -32,6 +32,8 @@ postgresql-common (153) UNRELEASED; urgency=medium
* debian/postgresql-common.triggers: Also trigger on
/usr/share/postgresql/, so that installation of new server versions builds
the corresponding dictionaries.
* init.d-functions, start(): Update SELinux label of /run/postgresql if
restorecon is installed. Thanks Martin Lang! (Closes: #737661)
-- Christoph Berg <christoph.berg@credativ.de> Thu, 09 Jan 2014 12:49:19 +0100
......
......@@ -51,9 +51,10 @@ do_ctl_all() {
start() {
# create socket directory
if [ -d /var/run/postgresql ]; then
chmod 2775 /var/run/postgresql
chmod 2775 /var/run/postgresql
else
install -d -m 2775 -o postgres -g postgres /var/run/postgresql
[ -x /sbin/restorecon ] && restorecon -R /var/run/postgresql || true
fi
do_ctl_all start "$1" "Starting PostgreSQL $1 database server"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment