This commit is contained in:
Charlotte 🦝 Delenk 2024-11-03 09:05:13 +01:00
parent 047a3a4bac
commit e926aeda42

View file

@ -32,7 +32,7 @@ with lib; {
if [[ -e ${cfg.home} ]]; then if [[ -e ${cfg.home} ]]; then
timestamp=$(date --date="@$(stat -c %X ${cfg.home})" "+%Y-%m-%d_%H:%M:%S") timestamp=$(date --date="@$(stat -c %X ${cfg.home})" "+%Y-%m-%d_%H:%M:%S")
mkdir -p /persistent/old-homedirs/${name} mkdir -p /persistent/old-homedirs/${name}
mv ${cfg.home} /home/old-homedirs/${name}/$timestamp mv ${cfg.home} /persistent/old-homedirs/${name}/$timestamp
fi fi
delete_subvolume_recursively() { delete_subvolume_recursively() {