mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-27 07:34:50 +02:00
Modify apply method of 8.1.1.6: Need manual opration set Kerberos related.
This commit is contained in:
parent
91db216654
commit
647d94d11c
@ -60,11 +60,9 @@ apply () {
|
|||||||
elif [ $FNRET = 2 ]; then
|
elif [ $FNRET = 2 ]; then
|
||||||
warn "$FILE is not exist, please manual check."
|
warn "$FILE is not exist, please manual check."
|
||||||
elif [ $FNRET = 3 ]; then
|
elif [ $FNRET = 3 ]; then
|
||||||
warn "$PATTERN value not exist in $FILE, add it"
|
warn "$PATTERN value not exist in $FILE, need manual operation set it and ensure Kerberos is correct set."
|
||||||
add_end_of_file $FILE "${PATTERN} = $SETVALUE"
|
|
||||||
elif [ $FNRET = 4 ]; then
|
elif [ $FNRET = 4 ]; then
|
||||||
warn "$PATTERN value is incorrect in $FILE, reset it"
|
warn "$PATTERN value is incorrect in $FILE, need manual operation set it and ensure Kerberos is correct set."
|
||||||
replace_in_file $FILE "^${PATTERN}[[:space:]].*" "${PATTERN} = $SETVALUE"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user