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

@@ -27,14 +27,14 @@ safe_run() {
sd_enable() {
local srv="${1}"
local ext=".${2:-service}"
[[ -x /usr/bin/systemctl ]] && \
[[ -x /bin/systemctl ]] && \
systemctl --no-reload enable -f "${srv}${ext}"
}
sd_disable() {
local srv="${1}"
local ext=".${2:-service}"
[[ -x /usr/bin/systemctl ]] && \
[[ -x /bin/systemctl ]] && \
systemctl --no-reload disable -f "${srv}${ext}"
}