Update return value of svcenable and svcdisable
This commit is contained in:
parent
53d5ac6f21
commit
cca2f01d6e
1 changed files with 4 additions and 4 deletions
8
lib
8
lib
|
@ -145,8 +145,8 @@ svcenable(){
|
|||
fi
|
||||
if (confirm "Start $displayname service at boot ?\n\nsystemctl enable $1") then
|
||||
systemctl enable $1
|
||||
else
|
||||
exit 1
|
||||
#else
|
||||
# exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -160,8 +160,8 @@ svcdisable(){
|
|||
fi
|
||||
if (confirm "Disable $displayname service at boot ?\n\nsystemctl disable $1") then
|
||||
systemctl disable $1
|
||||
else
|
||||
exit 1
|
||||
#else
|
||||
# exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue