Fix script-user-remove
This commit is contained in:
@@ -27,10 +27,10 @@ if [[ -d /mnt/array/home-retired/"$username" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
samba="no"
|
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?" && \
|
ask_ok "Make user $username an admin?" && \
|
||||||
group_str=",wheel"
|
group_str+=",wheel"
|
||||||
|
|
||||||
useradd_cmd+=("-G" "$group_str")
|
useradd_cmd+=("-G" "$group_str")
|
||||||
useradd_cmd+=("$username")
|
useradd_cmd+=("$username")
|
||||||
|
|||||||
Reference in New Issue
Block a user