From afd4710c44f0a93b63ad23285a2f2d96d2d3bf43 Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 18 Nov 2019 21:37:20 +0100 Subject: [PATCH] Debian: Add postinst restart hook --- package/debian/icalendar-timeseries-server/DEBIAN/postinst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/debian/icalendar-timeseries-server/DEBIAN/postinst b/package/debian/icalendar-timeseries-server/DEBIAN/postinst index b7586de..be22d72 100755 --- a/package/debian/icalendar-timeseries-server/DEBIAN/postinst +++ b/package/debian/icalendar-timeseries-server/DEBIAN/postinst @@ -17,4 +17,9 @@ if [[ "$1" == "configure" ]]; then systemctl daemon-reload || true + if [[ "$2" != "" ]]; then + # Restart after upgrading the package + systemctl restart icalendar-timeseries-server.service + fi + fi