diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ad08d..63d2c62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/bkctld-remove b/lib/bkctld-remove index def4e74..bcc109e 100755 --- a/lib/bkctld-remove +++ b/lib/bkctld-remove @@ -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