bkctld-remove: remove config directory
This commit is contained in:
parent
b8f0a377d9
commit
7c6fefd00b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue