eoptasks: add collectstatic command

This commit is contained in:
Frédéric Péters 2018-12-09 15:18:37 +01:00
parent 18d50be4a8
commit ac4fda99be
1 changed files with 11 additions and 1 deletions

View File

@ -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)