debian/postinst
changeset 35 3fedae1f6ceb
parent 32 89fb9c6611ca
equal deleted inserted replaced
34:900bc2a53fd7 35:3fedae1f6ceb
    36 	useradd -K UID_MIN=100 -K UID_MAX=999 -K GID_MIN=100 -K GID_MAX=999 -c "MCBOT" -s /bin/bash -d /var/lib/mcbot mcbot
    36 	useradd -K UID_MIN=100 -K UID_MAX=999 -K GID_MIN=100 -K GID_MAX=999 -c "MCBOT" -s /bin/bash -d /var/lib/mcbot mcbot
    37 	chown -R mcbot:mcbot /var/lib/mcbot
    37 	chown -R mcbot:mcbot /var/lib/mcbot
    38 	echo "Setting permissions for /var/lib/mcbot/.mcbotrc to 600"
    38 	echo "Setting permissions for /var/lib/mcbot/.mcbotrc to 600"
    39 	chmod 600 /var/lib/mcbot/.mcbotrc
    39 	chmod 600 /var/lib/mcbot/.mcbotrc
    40 	echo "ENTER /etc/init.d/mcbot restart after editing .mcbotrc"
    40 	echo "ENTER /etc/init.d/mcbot restart after editing .mcbotrc"
    41 	update-rc.d mcbot defaults &>/dev/null
    41 	update-rc.d mcbot defaults >/dev/null 2>&1
    42 	invoke-rc.d mcbot restart
    42 	invoke-rc.d mcbot restart
    43     ;;
    43     ;;
    44 
    44 
    45     abort-upgrade|abort-remove|abort-deconfigure)
    45     abort-upgrade|abort-remove|abort-deconfigure)
    46     ;;
    46     ;;