Browse Source

Don't allow use of the default debian user account

Bob Mottram 10 years ago
parent
commit
a8ec9c97ac
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-config

+ 4
- 0
src/freedombone-config View File

244
       echo 'No user account was selected'
244
       echo 'No user account was selected'
245
       exit 8347
245
       exit 8347
246
   fi
246
   fi
247
+  if [[ $MY_USERNAME == 'debian' ]]; then
248
+      echo "Don't use the default debian user account"
249
+      exit 9341
250
+  fi
247
   if [ ! -d /home/$MY_USERNAME ]; then
251
   if [ ! -d /home/$MY_USERNAME ]; then
248
       echo "The directory /home/$MY_USERNAME does not exist"
252
       echo "The directory /home/$MY_USERNAME does not exist"
249
       exit 6437
253
       exit 6437