bkctld-remove: remove config directory

This commit is contained in:
Jérémy Lecour 2021-06-30 14:56:53 +02:00 committed by Jérémy Lecour
parent b8f0a377d9
commit 7c6fefd00b
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
* bkctld-remove: remove config directory
### Deprecated
### Removed

View File

@ -50,6 +50,7 @@ fi
"${LIBDIR}/bkctld-is-on" "${jail_name}" && "${LIBDIR}/bkctld-stop" "${jail_name}"
rm -f "${CONFDIR}/${jail_name}"
rm -rf "$(jail_config_dir "${jail_name}")"
jail_inode=$(stat --format=%i "${jail_path}")
if [ "${jail_inode}" -eq 256 ]; then
/bin/btrfs subvolume delete "${jail_path}" | debug