#!/bin/sh -e PATH=/bin:/usr/bin:/sbin:/usr/sbin CONFIG=/etc/sysadmin/users OLDCONFIG=/etc/adminusers LOG=/var/log/sysadmin.log OLDLOG=/var/adm/adminlog if [ "$1" = "configure" ]; then if [ "$2" ] && dpkg --compare-versions "$2" le "1.24" ; then echo "" echo "CN: Warning: configuration files have moved since 1.24!" echo "CN: DO read /usr/share/doc/sysadmin-cn/README.CARNet for details." fi # Move files to right places. if [ -f $OLDCONFIG ]; then mv $OLDCONFIG $CONFIG echo "CN: Moved $OLDCONFIG to $CONFIG." fi if [ -f $OLDLOG ]; then mv $OLDLOG $LOG echo "CN: moved $OLDLOG to $LOG." fi # Create users file if none exists. if [ ! -e $CONFIG ]; then touch $CONFIG chmod 600 $CONFIG 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 # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER#