Debian package should only reload Systemd if it is running on the current system
This commit is contained in:
parent
43bece3c57
commit
67758f6eb3
4
debian/postinst
vendored
4
debian/postinst
vendored
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user