Fix some bug for 9.2.14

This commit is contained in:
Samson-W 2020-01-14 15:40:32 +08:00
parent 9254968cea
commit 74a6bb379f
1 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ audit_redhat () {
audit () {
if [ $OS_RELEASE -eq 1 ]; then
audit_debian
elif [ $OS_RELEASE -eq 1 ]; then
elif [ $OS_RELEASE -eq 2 ]; then
audit_redhat
else
crit "Current OS is not support!"
@ -95,6 +95,7 @@ apply_redhat () {
if [ $FNRET = 0 ]; then
crit "$OPTIONNAME is configured in $FILE"
info "Delete option $OPTIONNAME from $FILE"
backup_file $FILE
sed -i "s/$OPTIONNAME//" $FILE
else
ok "$OPTIONNAME is not configured in $FILE"
@ -106,7 +107,7 @@ apply_redhat () {
apply () {
if [ $OS_RELEASE -eq 1 ]; then
apply_debian
elif [ $OS_RELEASE -eq 1 ]; then
elif [ $OS_RELEASE -eq 2 ]; then
apply_redhat
else
crit "Current OS is not support!"