izbacen bashizam
[sysadmin-cn.git] / debian / postinst
index c43bc52..8c8e824 100755 (executable)
@@ -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