debian/postinst
changeset 32 89fb9c6611ca
parent 31 bbcb8a3366b4
child 35 3fedae1f6ceb
--- a/debian/postinst
+++ b/debian/postinst
@@ -21,7 +21,7 @@
 case "$1" in
     configure)
 	if [ ! -f /var/lib/mcbot/data/mcbot.dat ];
-	then		
+	then
 		echo "Creating initial database in /var/lib/mcbot/data";
 		dbtool -a -k 1 -v 1;
 		dbtool -d 1;
@@ -33,7 +33,7 @@
 	fi
 
 	echo "Changing ownership in /var/lib/mcbot"
-	useradd -c "MCBOT" -s /bin/bash -d /var/lib/mcbot mcbot
+	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
 	chown -R mcbot:mcbot /var/lib/mcbot
 	echo "Setting permissions for /var/lib/mcbot/.mcbotrc to 600"
 	chmod 600 /var/lib/mcbot/.mcbotrc