summarylogtreecommitdiffstats
path: root/concrnt-webui.hook
blob: f39ac3d8bed766cbbc0bac97f3757a703d930f1c (plain)
1
2
3
4
5
6
7
8
9
[Trigger]
Type = Package
Operation = Upgrade
Target = concrnt-webui-bin

[Action]
Description = Restarting concrnt-gateway...
When = PostTransaction
Exec = /bin/bash -c '/usr/bin/systemctl is-active concrnt-webui-caddy.service -q && /usr/bin/systemctl restart concrnt-webui-caddy.service || /usr/bin/systemctl is-active concrnt-webui-nginx.service -q && /usr/bin/systemctl restart concrnt-webui-nginx.service || /usr/bin/true'