Modify 8.3.2
This commit is contained in:
parent
69c45da7c0
commit
11d2770fc6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue