migrate: run setup -f on remote also

This commit is contained in:
tschettervictor
2025-05-06 07:50:56 -06:00
parent c0cd4df6c5
commit d7f9ce8050

View File

@@ -132,17 +132,7 @@ migrate_create_export() {
# Ensure new migrate directory is created
bastille setup -f
if [ ! -d "${bastille_migratedir}" ]; then
if checkyesno bastille_zfs_enable; then
if [ -n "${bastille_zfs_zpool}" ]; then
zfs create ${bastille_zfs_options} -o mountpoint="${bastille_migratedir}" "${bastille_zfs_zpool}/${bastille_zfs_prefix}/migrate"
fi
else
mkdir -p "${bastille_migratedir}"
fi
chmod 0750 "${bastille_migratedir}"
fi
ssh ${_user}@${_host} bastille setup -f
# --xz for ZFS, otherwise --txz
if checkyesno bastille_zfs_enable; then