Also create nut user when installing nut-client package and do not delete it on purge anymore (Closes: #682000)

This commit is contained in:
Laurent Bigonville 2012-08-09 21:21:03 +02:00
parent 8a901d6ac1
commit b7d91288c6
4 changed files with 64 additions and 8 deletions

View file

@ -22,7 +22,7 @@ case "$1" in
if [ -d /etc/nut/ ] ; then
chown root:nut /etc/nut/
fi
for file in nut.conf ups.conf upsd.conf upsmon.conf upsd.users upssched.conf ; do
for file in ups.conf upsd.conf upsd.users ; do
if [ -f /etc/nut/$file ] ; then
chown root:nut /etc/nut/$file
chmod 640 /etc/nut/$file