eoptasks: add combo.reload special command

This commit is contained in:
Frédéric Péters 2018-12-22 18:36:09 +01:00
parent 7c7760ac92
commit ef4a3e84f2
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,7 @@ else:
cmd = {
'apt.update': 'sudo apt update',
'apt.upgrade': 'sudo apt update && sudo apt upgrade -y',
# collectstatic is useful after an upgrade of gadjo.
'collectstatic': '''sudo -u authentic-multitenant authentic2-multitenant-manage collectstatic --noinput;
sudo -u bijoe bijoe-manage collectstatic --noinput;
sudo -u chrono chrono-manage collectstatic --noinput;
@ -231,6 +232,9 @@ else:
sudo -u passerelle passerelle-manage collectstatic --noinput;
sudo -u wcs wcs-manage collectstatic;
/bin/true'''.replace('\n', ''),
# combo.reload is useful to get a new {% start_timestamp %} after an
# upgrade of publik-base-theme.
'combo.reload': '''sudo service combo reload; /bin/true''',
}.get(args.cmd, args.cmd)
status_window = session.attached_window