Debian package should only reload Systemd if it is running on the current system

This commit is contained in:
B.J. Dweck 2020-10-22 08:50:00 +02:00
parent 43bece3c57
commit 67758f6eb3

2
debian/postinst vendored
View File

@ -42,8 +42,10 @@ configure_tor_controller() {
fi fi
if [ $TORRC_CHANGED -eq 1 ]; then if [ $TORRC_CHANGED -eq 1 ]; then
if [ -d "/run/systemd/system" ]; then
systemctl reload tor systemctl reload tor
fi fi
fi
} }
case "$1" in case "$1" in