Modify apply method of 8.1.1.6: Need manual opration set Kerberos related.

This commit is contained in:
Samson-W 2019-04-19 15:20:41 +08:00
parent 91db216654
commit 647d94d11c

View File

@ -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
}