migrate: Error if no migratedir

This commit is contained in:
tschettervictor
2025-05-05 14:50:33 -06:00
committed by GitHub
parent 23a734c7d5
commit e82938904d

View File

@@ -132,6 +132,10 @@ migrate_create_export() {
# Ensure migrate directory is in place
## ${bastille_migratedir}
if [ -z "${bastille_migratedir}" ]; then
error_notify "[ERROR]: No migrate directory found."
error_exit "Did you diff the config file?"
fi
if [ ! -d "${bastille_migratedir}" ]; then
if checkyesno bastille_zfs_enable; then
if [ -n "${bastille_zfs_zpool}" ]; then