Don't allow use of the default debian user account

This commit is contained in:
Bob Mottram 2015-02-14 15:52:31 +00:00
parent 3b61f3ec40
commit a8ec9c97ac
1 changed files with 4 additions and 0 deletions

View File

@ -244,6 +244,10 @@ function interactive_configuration {
echo 'No user account was selected'
exit 8347
fi
if [[ $MY_USERNAME == 'debian' ]]; then
echo "Don't use the default debian user account"
exit 9341
fi
if [ ! -d /home/$MY_USERNAME ]; then
echo "The directory /home/$MY_USERNAME does not exist"
exit 6437