Modify 8.3.2

This commit is contained in:
Samson-W 2019-05-07 19:03:35 +08:00
parent 69c45da7c0
commit 11d2770fc6
1 changed files with 7 additions and 2 deletions

View File

@ -45,8 +45,13 @@ apply () {
is_service_enabled $SERVICE_NAME
if [ $FNRET != 0 ]; then
info "Enabling $SERVICE_NAME"
update-rc.d $SERVICE_NAME remove > /dev/null 2>&1
update-rc.d $SERVICE_NAME defaults > /dev/null 2>&1
is_debian_9
if [ $FNRET != 0 ]; then
update-rc.d $SERVICE_NAME remove > /dev/null 2>&1
update-rc.d $SERVICE_NAME defaults > /dev/null 2>&1
else
systemctl enable $SERVICE_NAME
fi
else
ok "$SERVICE_NAME is enabled"
fi