support lowercase values in bastille.conf (issue #368)

This commit is contained in:
Christer Edwards
2023-11-25 15:09:11 -07:00
parent b05493bc8e
commit 622c926917
9 changed files with 49 additions and 28 deletions

View File

@@ -105,7 +105,7 @@ update_fstab() {
change_name() {
# Attempt container name change
info "Attempting to rename '${TARGET}' to ${NEWNAME}..."
if [ "${bastille_zfs_enable}" = "YES" ]; then
if checkyesno bastille_zfs_enable; then
if [ -n "${bastille_zfs_zpool}" ] && [ -n "${bastille_zfs_prefix}" ]; then
# Check and rename container ZFS dataset accordingly
# Perform additional checks in case of non-ZFS existing containers