diff --git a/script-user-add b/script-user-add index e0083f61..3cbe8f41 100755 --- a/script-user-add +++ b/script-user-add @@ -30,10 +30,10 @@ if [[ -d /mnt/array/home-retired/"$username" ]]; then fi samba="no" -ask_ok "Enable shared file access for user $username?" && group_str="smbgrp" && samba="yes" +ask_ok "Enable shared file access for user $username?" && group_str="smbgrp," && samba="yes" ask_ok "Make user $username an admin?" && \ - group_str+=",wheel" + group_str+="wheel" useradd_cmd+=("-G" "$group_str") useradd_cmd+=("$username")