Move pidfiles from /var/run/nut to /run/nut, there is nothing else to do since /var/run is a symlink to /run for some times now (policy 3.9.3)

This commit is contained in:
Laurent Bigonville 2019-07-27 13:25:06 +02:00
parent b493284ac5
commit b11ef489f7
8 changed files with 26 additions and 24 deletions

View file

@ -43,15 +43,15 @@ case "$1" in
done
fi
# make sure that /var/run/nut exists and has the correct ownerships
if [ ! -d /var/run/nut ] ; then
mkdir -p /var/run/nut
# make sure that /run/nut exists and has the correct ownerships
if [ ! -d /run/nut ] ; then
mkdir -p /run/nut
fi
if [ -d /var/run/nut ] ; then
chown root:nut /var/run/nut
chmod 770 /var/run/nut
if [ -d /run/nut ] ; then
chown root:nut /run/nut
chmod 770 /run/nut
if which restorecon >/dev/null 2>&1; then
restorecon /var/run/nut
restorecon /run/nut
fi
fi