mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-04-08 17:06:34 +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
|
||||
warn "$FILE is not exist, please manual check."
|
||||
elif [ $FNRET = 3 ]; then
|
||||
warn "$PATTERN value not exist in $FILE, add it"
|
||||
add_end_of_file $FILE "${PATTERN} = $SETVALUE"
|
||||
warn "$PATTERN value not exist in $FILE, need manual operation set it and ensure Kerberos is correct set."
|
||||
elif [ $FNRET = 4 ]; then
|
||||
warn "$PATTERN value is incorrect in $FILE, reset it"
|
||||
replace_in_file $FILE "^${PATTERN}[[:space:]].*" "${PATTERN} = $SETVALUE"
|
||||
warn "$PATTERN value is incorrect in $FILE, need manual operation set it and ensure Kerberos is correct set."
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user