X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=8c8e824e918cc6676030745bced386e8ad402dd8;hb=1658178c6e43dea46cfe6ee7259b670384283546;hp=c43bc52c251b5722224479d08698ad37b05b6d85;hpb=0f94b0c4d6f67ee6bd36a0d679396482c5689264;p=sysadmin-cn.git diff --git a/debian/postinst b/debian/postinst index c43bc52..8c8e824 100755 --- a/debian/postinst +++ b/debian/postinst @@ -6,7 +6,7 @@ OLDCONFIG=/etc/adminusers LOG=/var/log/sysadmin.log OLDLOG=/var/adm/adminlog -if [ "$1" == "configure" ]; then +if [ "$1" = "configure" ]; then if [ "$2" ] && dpkg --compare-versions "$2" le "1.24" ; then echo "" @@ -31,3 +31,7 @@ if [ "$1" == "configure" ]; then fi fi + +chmod 4750 /usr/bin/sysadmin +dpkg-statoverride --remove /usr/bin/sysadmin > /dev/null 2> /dev/null || true +dpkg-statoverride --update --add root root 4755 /usr/bin/sysadmin