debian: postinst: use systemctl mask
This commit is contained in:
parent
d7fac08792
commit
4faece9e89
5
debian/qubes-core-agent.postinst
vendored
5
debian/qubes-core-agent.postinst
vendored
@ -158,9 +158,8 @@ disableSystemdUnits() {
|
|||||||
if fgrep -q '[Install]' /lib/systemd/system/${unit}; then
|
if fgrep -q '[Install]' /lib/systemd/system/${unit}; then
|
||||||
systemctl disable ${unit} > /dev/null 2>&1 || displayFailedStatus disable ${unit}
|
systemctl disable ${unit} > /dev/null 2>&1 || displayFailedStatus disable ${unit}
|
||||||
else
|
else
|
||||||
# Forcibly disable
|
echo "Masking service: ${unit}"
|
||||||
echo "Forcibly disabling: ${unit}"
|
systemctl mask ${unit}
|
||||||
ln -sf /dev/null /etc/systemd/system/${unit}
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
systemctl disable ${unit} > /dev/null 2>&1 || displayFailedStatus disable ${unit}
|
systemctl disable ${unit} > /dev/null 2>&1 || displayFailedStatus disable ${unit}
|
||||||
|
Loading…
Reference in New Issue
Block a user