Quellcode durchsuchen

Obtain min password length from utils script

Bob Mottram vor 8 Jahren
Ursprung
Commit
88d4bd3ceb
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      src/freedombone-controlpanel

+ 2
- 2
src/freedombone-controlpanel Datei anzeigen

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