Procházet zdrojové kódy

Obtain password length from utils script

Bob Mottram před 8 roky
rodič
revize
88d2df7ba6
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/freedombone-config

+ 2
- 2
src/freedombone-config Zobrazit soubor

@@ -45,10 +45,10 @@ FREEDOMBONE_WEBSITE="http://freedombone.uk.to"
45 45
 # Minimum number of characters in a password
46 46
 MINIMUM_PASSWORD_LENGTH=10
47 47
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
48
-	MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
48
+	MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
49 49
 else
50 50
 	if [ -f /usr/bin/${PROJECT_NAME} ]; then
51
-		MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
51
+		MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
52 52
 	fi
53 53
 fi
54 54