Explorar el Código

Obtain min password length from utils script

Bob Mottram hace 8 años
padre
commit
88d4bd3ceb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/freedombone-controlpanel

+ 2
- 2
src/freedombone-controlpanel Ver fichero

@@ -43,10 +43,10 @@ UPDATE_DATE_SCRIPT=/usr/bin/updatedate
43 43
 # Minimum number of characters in a password
44 44
 MINIMUM_PASSWORD_LENGTH=10
45 45
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
46
-	MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
46
+	MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
47 47
 else
48 48
 	if [ -f /usr/bin/${PROJECT_NAME} ]; then
49
-		MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
49
+		MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
50 50
 	fi
51 51
 fi
52 52