Преглед изворни кода

Obtain password length from utils script

Bob Mottram пре 8 година
родитељ
комит
88d2df7ba6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      src/freedombone-config

+ 2
- 2
src/freedombone-config Прегледај датотеку

45
 # Minimum number of characters in a password
45
 # Minimum number of characters in a password
46
 MINIMUM_PASSWORD_LENGTH=10
46
 MINIMUM_PASSWORD_LENGTH=10
47
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
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
 else
49
 else
50
 	if [ -f /usr/bin/${PROJECT_NAME} ]; then
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
 	fi
52
 	fi
53
 fi
53
 fi
54
 
54