Fix some bug for 9.2.14
This commit is contained in:
parent
9254968cea
commit
74a6bb379f
|
@ -63,7 +63,7 @@ audit_redhat () {
|
||||||
audit () {
|
audit () {
|
||||||
if [ $OS_RELEASE -eq 1 ]; then
|
if [ $OS_RELEASE -eq 1 ]; then
|
||||||
audit_debian
|
audit_debian
|
||||||
elif [ $OS_RELEASE -eq 1 ]; then
|
elif [ $OS_RELEASE -eq 2 ]; then
|
||||||
audit_redhat
|
audit_redhat
|
||||||
else
|
else
|
||||||
crit "Current OS is not support!"
|
crit "Current OS is not support!"
|
||||||
|
@ -95,6 +95,7 @@ apply_redhat () {
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
crit "$OPTIONNAME is configured in $FILE"
|
crit "$OPTIONNAME is configured in $FILE"
|
||||||
info "Delete option $OPTIONNAME from $FILE"
|
info "Delete option $OPTIONNAME from $FILE"
|
||||||
|
backup_file $FILE
|
||||||
sed -i "s/$OPTIONNAME//" $FILE
|
sed -i "s/$OPTIONNAME//" $FILE
|
||||||
else
|
else
|
||||||
ok "$OPTIONNAME is not configured in $FILE"
|
ok "$OPTIONNAME is not configured in $FILE"
|
||||||
|
@ -106,7 +107,7 @@ apply_redhat () {
|
||||||
apply () {
|
apply () {
|
||||||
if [ $OS_RELEASE -eq 1 ]; then
|
if [ $OS_RELEASE -eq 1 ]; then
|
||||||
apply_debian
|
apply_debian
|
||||||
elif [ $OS_RELEASE -eq 1 ]; then
|
elif [ $OS_RELEASE -eq 2 ]; then
|
||||||
apply_redhat
|
apply_redhat
|
||||||
else
|
else
|
||||||
crit "Current OS is not support!"
|
crit "Current OS is not support!"
|
||||||
|
|
Loading…
Reference in New Issue