Accepting request 1068086 from home:zhonglidong:branches:Base:System

- Fix return non-zero value when disabling SysVinit service(bsc#1208432)

OBS-URL: https://build.opensuse.org/request/show/1068086
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1349
This commit is contained in:
Franck Bui 2023-02-28 08:09:56 +00:00 committed by Git OBS Bridge
parent 24e52e425a
commit 24494639b9
2 changed files with 7 additions and 2 deletions

View File

@ -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
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 28 02:58:20 UTC 2023 - Lidong Zhong <lidong.zhong@suse.com>
- Fix return non-zero value when disabling SysVinit service(bsc#1208432)
-------------------------------------------------------------------
Mon Feb 27 08:43:27 UTC 2023 - Franck Bui <fbui@suse.com>