Also create nut user when installing nut-client package and do not delete it on purge anymore (Closes: #682000)
This commit is contained in:
parent
8a901d6ac1
commit
b7d91288c6
4 changed files with 64 additions and 8 deletions
2
debian/nut-server.postinst
vendored
2
debian/nut-server.postinst
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue