summarylogtreecommitdiffstats
path: root/iceshrimp.hook
diff options
context:
space:
mode:
Diffstat (limited to 'iceshrimp.hook')
-rw-r--r--iceshrimp.hook9
1 files changed, 9 insertions, 0 deletions
diff --git a/iceshrimp.hook b/iceshrimp.hook
new file mode 100644
index 000000000000..c5cd8db0e159
--- /dev/null
+++ b/iceshrimp.hook
@@ -0,0 +1,9 @@
+[Trigger]
+Type = Package
+Operation = Upgrade
+Target = iceshrimp-bin
+
+[Action]
+Description = Restarting iceshrimp daemon...
+When = PostTransaction
+Exec = /bin/bash -c '/usr/bin/systemctl is-active iceshrimp.service -q && /usr/bin/systemctl restart iceshrimp.service || /usr/bin/true'