diff --git a/systemd-sysv-install b/systemd-sysv-install index cffe4c8..d790015 100644 --- a/systemd-sysv-install +++ b/systemd-sysv-install @@ -93,10 +93,10 @@ enable_initscript() { disable_initscript() { for symlink in rc*.d/[SK]*; do - [ -L $symlink ] && [ $(readlink $symlink) = "../$1" ] && { + if [ -L $symlink ] && [ $(readlink $symlink) = "../$1" ]; then info "rm $(pwd)/$symlink" rm $symlink - } + fi done } diff --git a/systemd.changes b/systemd.changes index 804dcfc..bffdd09 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 28 02:58:20 UTC 2023 - Lidong Zhong + +- Fix return non-zero value when disabling SysVinit service(bsc#1208432) + ------------------------------------------------------------------- Mon Feb 27 08:43:27 UTC 2023 - Franck Bui