Handle systemd path migration

This commit is contained in:
Ettore Di Giacinto
2018-12-05 19:33:52 +01:00
parent f982e6a025
commit 33fd4af08e
3 changed files with 6 additions and 6 deletions

View File

@@ -4,12 +4,12 @@
. /etc/profile
sd_enable() {
[[ -x /usr/bin/systemctl ]] && \
[[ -x /bin/systemctl ]] && \
systemctl --no-reload -f enable "${1}.service"
}
sd_disable() {
[[ -x /usr/bin/systemctl ]] && \
[[ -x /bin/systemctl ]] && \
systemctl --no-reload -f disable "${1}.service"
}