tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2025-01-21 02:44:23 +03:00
parent d7787bedcf
commit 1e77b22103

View File

@ -79,13 +79,10 @@ if ! [ -z "$DRY_RUN" ] \
|| [ -e "$FROM_THEME_DIR" ] ; then || [ -e "$FROM_THEME_DIR" ] ; then
# instance id's... # instance id's...
# XXX not sure how to deal with $DRY_RUN here... # XXX not sure how to deal with $DRY_RUN here...
if [ -z $DRY_RUN ] ; then FROM_INSTANCEID=${DRY_RUN:-$(lxc-attach $FROM -- turnkey-occ config:system:get instanceid)}
FROM_INSTANCEID=$(lxc-attach $FROM -- turnkey-occ config:system:get instanceid) FROM_INSTANCEID=${DRY_RUN:+FROM}
TO_INSTANCEID=$(lxc-attach $TO -- turnkey-occ config:system:get instanceid) TO_INSTANCEID=${DRY_RUN:-$(lxc-attach $TO -- turnkey-occ config:system:get instanceid)}
else TO_INSTANCEID=${DRY_RUN:+TO}
FROM_INSTANCEID=FROM
TO_INSTANCEID=TO
fi
# full... # full...
if [ "$MIGRATE_CACHE" == "full" ] ; then if [ "$MIGRATE_CACHE" == "full" ] ; then