瀏覽代碼

Enable admin sudoer in non-image install

Bob Mottram 8 年之前
父節點
當前提交
cf9ce1c0bf
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 0
    4
      src/freedombone-image-customise
  2. 7
    0
      src/freedombone-utils-setup

+ 0
- 4
src/freedombone-image-customise 查看文件

279
     fi
279
     fi
280
 }
280
 }
281
 
281
 
282
-admin_user_sudo() {
283
-    echo "$MY_USERNAME  ALL=(ALL) ALL" >> $rootdir/etc/sudoers
284
-}
285
-
286
 create_generic_image() {
282
 create_generic_image() {
287
     if [[ $DEBIAN_INSTALL_ONLY != "no" ]]; then
283
     if [[ $DEBIAN_INSTALL_ONLY != "no" ]]; then
288
         return
284
         return

+ 7
- 0
src/freedombone-utils-setup 查看文件

107
     mark_completed $FUNCNAME
107
     mark_completed $FUNCNAME
108
 }
108
 }
109
 
109
 
110
+function admin_user_sudo {
111
+    echo "$MY_USERNAME  ALL=(ALL) ALL" >> $rootdir/etc/sudoers
112
+}
113
+
110
 function search_for_attached_usb_drive {
114
 function search_for_attached_usb_drive {
111
     # If a USB drive is attached then search for email,
115
     # If a USB drive is attached then search for email,
112
     # gpg, ssh keys and emacs configuration
116
     # gpg, ssh keys and emacs configuration
412
 
416
 
413
     function_check install_tomb
417
     function_check install_tomb
414
     install_tomb
418
     install_tomb
419
+
420
+    function_check admin_user_sudo
421
+    admin_user_sudo
415
 }
422
 }
416
 
423
 
417
 function setup_email {
424
 function setup_email {