summaryrefslogtreecommitdiff
path: root/morphlib/exts/ssh-rsync.write
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/exts/ssh-rsync.write')
-rwxr-xr-xmorphlib/exts/ssh-rsync.write5
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/exts/ssh-rsync.write b/morphlib/exts/ssh-rsync.write
index 4961ee4d..8dc0fe35 100755
--- a/morphlib/exts/ssh-rsync.write
+++ b/morphlib/exts/ssh-rsync.write
@@ -93,6 +93,11 @@ class SshRsyncWriteExtension(morphlib.writeexts.WriteExtension):
cliapp.ssh_runcmd(location,
['env', 'BASEROCK_SYSTEM_CONFIG_SYNC='+system_config_sync,
system_version_manager, 'deploy', deployment])
+
+ self.status(msg='Setting %s as the new default system' %
+ version_label)
+ cliapp.ssh_runcmd(location,
+ [system_version_manager, 'set-default', version_label])
except Exception as e:
self.status(msg='Deployment failed')
ssh_runcmd_ignore_failure(