add combo.reload special command
This commit is contained in:
parent
1962287758
commit
5e75af334f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue