Delete debug line of check_param_pair_by_pam function
This commit is contained in:
parent
4fd8bc1c29
commit
6b14bed3c9
|
@ -495,7 +495,6 @@ check_param_pair_by_pam()
|
||||||
#CONDITION="-1"
|
#CONDITION="-1"
|
||||||
if [ -f "$LOCATION" ];then
|
if [ -f "$LOCATION" ];then
|
||||||
RESULT=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep -w "$KEYWORD.*$OPTION" | wc -l)
|
RESULT=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep -w "$KEYWORD.*$OPTION" | wc -l)
|
||||||
echo $RESULT
|
|
||||||
if [ "$RESULT" -eq 1 ]; then
|
if [ "$RESULT" -eq 1 ]; then
|
||||||
debug "$KEYWORD $OPTION is conf"
|
debug "$KEYWORD $OPTION is conf"
|
||||||
cndt_value=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep "$KEYWORD.*$OPTION" | tr "\t" " " | tr " " "\n" | sed -n "/$OPTION/p" | awk -F "=" '{print $2}')
|
cndt_value=$(sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' $LOCATION | grep "$KEYWORD.*$OPTION" | tr "\t" " " | tr " " "\n" | sed -n "/$OPTION/p" | awk -F "=" '{print $2}')
|
||||||
|
|
Loading…
Reference in New Issue