Fix script-user-remove

This commit is contained in:
2021-10-22 15:42:15 -04:00
parent d71eb5f824
commit 1cccdc457c

View File

@@ -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