浏览代码

Don't allow use of the default debian user account

Bob Mottram 10 年前
父节点
当前提交
a8ec9c97ac
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-config

+ 4
- 0
src/freedombone-config 查看文件

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