debian/preinst
changeset 26 767f79e69de1
parent 0 586472add385
child 31 bbcb8a3366b4
equal deleted inserted replaced
25:a0fad312ea30 26:767f79e69de1
    16 
    16 
    17 case "$1" in
    17 case "$1" in
    18     install|upgrade)
    18     install|upgrade)
    19 	if [ -x /etc/init.d/mcbot ]; 
    19 	if [ -x /etc/init.d/mcbot ]; 
    20 	then
    20 	then
    21 		/etc/init.d/mcbot stop;
    21 		invoke-rc.d mcbot stop;
    22 	fi
    22 	fi
    23 
    23 
    24 	if [ -f /var/lib/nobody/.mcbotrc ]; 
    24 	if [ -f /var/lib/nobody/.mcbotrc ]; 
    25 	then
    25 	then
    26 		cp -f /var/lib/nobody/.mcbotrc /var/lib/nobody/.mcbotrc.dpkg-old
    26 		cp -f /var/lib/nobody/.mcbotrc /var/lib/nobody/.mcbotrc.dpkg-old