X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Fpostinst;h=be6a549195592ebc5819a34f3ef788f07b15c8cd;hb=b2afeabd945019dc648c1b51c10c01557c930434;hp=28296a93c272e9cc748f7b130c675a0705c14fc9;hpb=bde83ad58d800ae004caccab6531234272181da2;p=debian%2Famanda diff --git a/debian/postinst b/debian/postinst index 28296a9..be6a549 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e . /usr/share/debconf/confmodule @@ -13,7 +13,8 @@ if [ "$1" = configure ]; then groupadd -g 34 backup 2> /dev/null groupadd -g 26 tape 2> /dev/null - usermod -G disk,tape backup + adduser backup disk + adduser backup tape # in case we get installed first if [ ! -d /var/lib/amanda ]; then @@ -51,7 +52,7 @@ if [ "$1" = configure ]; then chown backup:backup ~backup/.amandahosts /etc/amandahosts \ /var/log/amanda - chmod 660 ~backup/.amandahosts /etc/amandahosts + chmod 600 ~backup/.amandahosts /etc/amandahosts chmod 770 /var/log/amanda fi