diff --git a/eoptasks/eoptasks.py b/eoptasks/eoptasks.py index 4df8bb2..097a4d8 100755 --- a/eoptasks/eoptasks.py +++ b/eoptasks/eoptasks.py @@ -10,7 +10,7 @@ # servers + all passerelle servers on the SaaS. # # It takes any shell command and has some builtin shortcuts such as apt.update -# and apt.upgrade. (that's the whole lot, actually). +# and apt.upgrade. # # Requirements: libtmux and pyyaml. @@ -68,6 +68,16 @@ if not selected_servers: cmd = { 'apt.update': 'sudo apt update', 'apt.upgrade': 'sudo apt update && sudo apt upgrade -y', + 'collectstatic': '''sudo -u authentic-multitenant authentic2-multitenant-manage collectstatic --noinput; + sudo -u bijoe bijoe-manage collectstatic --noinput; + sudo -u chrono chrono-manage collectstatic --noinput; + sudo -u combo combo-manage collectstatic --noinput; + sudo -u corbo corbo-manage collectstatic --noinput; + sudo -u fargo fargo-manage collectstatic --noinput; + sudo -u hobo hobo-manage collectstatic --noinput; + sudo -u passerelle passerelle-manage collectstatic --noinput; + sudo -u wcs wcs-manage collectstatic; + /bin/true'''.replace('\n', ''), }.get(args.cmd, args.cmd) tmux_session_name = 's%s' % random.randrange(1000)