From cc26414f23ba8537f55062e516cba4dbbf84f55f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Jul 2016 17:24:28 +0100 Subject: [PATCH] Obtain password length from utils script --- src/freedombone-adduser | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-adduser b/src/freedombone-adduser index 943aa59d..edc32e3c 100755 --- a/src/freedombone-adduser +++ b/src/freedombone-adduser @@ -64,10 +64,10 @@ fi # 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