Obtain min password length from utils script
This commit is contained in:
parent
8d8690ef08
commit
88d4bd3ceb
|
@ -43,10 +43,10 @@ UPDATE_DATE_SCRIPT=/usr/bin/updatedate
|
|||
# Minimum number of characters in a password
|
||||
MINIMUM_PASSWORD_LENGTH=10
|
||||
if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
|
||||
MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
|
||||
MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
|
||||
else
|
||||
if [ -f /usr/bin/${PROJECT_NAME} ]; then
|
||||
MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
|
||||
MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue