From 1d85691653ff521038e3ca8457affc802495f95f Mon Sep 17 00:00:00 2001 From: Mathew Guest Date: Mon, 26 Sep 2022 15:40:08 -0600 Subject: [PATCH] different rsync args and fixed chown tpyo --- smileyface/app.py | 1 + smileyface/hub_machine.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/smileyface/app.py b/smileyface/app.py index 2d7b519..489a32c 100644 --- a/smileyface/app.py +++ b/smileyface/app.py @@ -116,6 +116,7 @@ Typical Usage: """ print(s) + def start_app(): app = SmileyFace() app.invoke_from_cli() diff --git a/smileyface/hub_machine.py b/smileyface/hub_machine.py index 7eb6f65..1ec4759 100644 --- a/smileyface/hub_machine.py +++ b/smileyface/hub_machine.py @@ -172,7 +172,7 @@ ssh {remote_game_host} {remote_game_dir}/stop-server.sh remote_redirect_host = self.ctx.config['app']['remote_redirect_host'] cwd = project_dir cmd = ''' -rsync -rvz \ +rsync -rivz \ --delete \ --exclude "*.md5" \ --exclude 'unused' \ @@ -232,7 +232,7 @@ rsync -vz \ cmd = ''' ssh mathewguest.com \ - chown http.http /srv/ut4-redirect.zavage.net -R + chown http:http /srv/ut4-redirect.zavage.net -R ''' self._invoke_command(cmd) @@ -248,7 +248,7 @@ ssh mathewguest.com \ # transfer #1 cmd = ''' -rsync -ravzp \ +rsync -raivzp \ --delete \ --exclude ".KEEP" \ --exclude "Mods.db" \ @@ -302,7 +302,7 @@ scp \ # transfer #4 cmd = ''' ssh {remote_game_host} \ - chown ut4.ut4 {remote_game_dir} -R + chown ut4:ut4 {remote_game_dir} -R '''.format(**{ 'remote_game_host': remote_game_host, 'remote_game_dir': remote_game_dir