Fix script-user-remove
This commit is contained in:
@@ -19,9 +19,7 @@ fi
|
||||
|
||||
killall -u "$user"
|
||||
|
||||
! ask_ok "Backup /home/$user?" && exit $?
|
||||
|
||||
if [[ -d /home/"$user" ]]; then
|
||||
if ask_ok "Backup /home/$user?" && [[ -d /home/"$user" ]]; then
|
||||
if [[ ! -d /mnt/array/home-retire/"$user" ]]; then
|
||||
btrfs subvolume create /mnt/array/home-retired/"$user"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user