server: bkctld-archive > Cleanup nspawn setup/config
This commit is contained in:
parent
75f9107ed0
commit
e2531d67b3
1 changed files with 3 additions and 0 deletions
|
@ -48,4 +48,7 @@ fi
|
|||
mkdir -p "$(dirname "${archive_jail_path}")"
|
||||
mv "${jail_path}" "${archive_jail_path}"
|
||||
|
||||
[ -e "/etc/systemd/nspawn/${jail_name}.nspawn" ] && rm "/etc/systemd/nspawn/${jail_name}.nspawn"
|
||||
[ -e "/var/lib/machines/${jail_name}" ] && unlink "/var/lib/machines/${jail_name}"
|
||||
|
||||
notice "Archive jail \`${jail_name}' : OK"
|
||||
|
|
Loading…
Add table
Reference in a new issue