From 67758f6eb3b3a7700c0c6274bf5e5169be3524b2 Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Thu, 22 Oct 2020 08:50:00 +0200 Subject: [PATCH] Debian package should only reload Systemd if it is running on the current system --- debian/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 8b4d601..b334258 100644 --- a/debian/postinst +++ b/debian/postinst @@ -42,7 +42,9 @@ configure_tor_controller() { fi if [ $TORRC_CHANGED -eq 1 ]; then - systemctl reload tor + if [ -d "/run/systemd/system" ]; then + systemctl reload tor + fi fi }