소스 검색

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