aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-08-01 12:05:52 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-08-01 12:05:52 +0200
commit2626ad5321cc34701467d5ae33f19fb607903ffe (patch)
tree0123bc49b227381245188b3f50d06c0d09937ef7
parent9594c27235b6c86a30b62132c653a5b4c332607e (diff)
Fix typo in svc_enable
-rw-r--r--lib/util/svc.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/svc.bash b/lib/util/svc.bash
index be1f003..1b1ecbc 100644
--- a/lib/util/svc.bash
+++ b/lib/util/svc.bash
@@ -63,8 +63,8 @@ svc_enable() {
case "${BASHTARD_PLATFORM[os]}" in
linux)
case "${BASHTARD_PLATFORM[init]}" in
- openrc) set -- /sbin/rc-update del "$service" ;;
- systemd) set -- systemctl disable "$service" ;;
+ openrc) set -- /sbin/rc-update add "$service" ;;
+ systemd) set -- systemctl enable "$service" ;;
*)
crit "$system" "No service manager support to enable with ${BASHTARD_PLATFORM[init]}"
return 1