Browse Source

Enable admin sudoer in non-image install

Bob Mottram 8 years ago
parent
commit
cf9ce1c0bf
2 changed files with 7 additions and 4 deletions
  1. 0
    4
      src/freedombone-image-customise
  2. 7
    0
      src/freedombone-utils-setup

+ 0
- 4
src/freedombone-image-customise View File

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

+ 7
- 0
src/freedombone-utils-setup View File

@@ -107,6 +107,10 @@ function initial_setup {
107 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 114
 function search_for_attached_usb_drive {
111 115
     # If a USB drive is attached then search for email,
112 116
     # gpg, ssh keys and emacs configuration
@@ -412,6 +416,9 @@ function setup_utils {
412 416
 
413 417
     function_check install_tomb
414 418
     install_tomb
419
+
420
+    function_check admin_user_sudo
421
+    admin_user_sudo
415 422
 }
416 423
 
417 424
 function setup_email {