eoptasks: add collectstatic command
This commit is contained in:
parent
18d50be4a8
commit
ac4fda99be
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue