mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 18:50:08 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d7787bedcf
commit
1e77b22103
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user