Quellcode durchsuchen

Obtain password length from utils script

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

+ 2
- 2
src/freedombone-adduser Datei anzeigen

@@ -64,10 +64,10 @@ fi
64 64
 # Minimum number of characters in a password
65 65
 MINIMUM_PASSWORD_LENGTH=10
66 66
 if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
67
-	MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
67
+	MINIMUM_PASSWORD_LENGTH=$(cat /usr/local/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
68 68
 else
69 69
 	if [ -f /usr/bin/${PROJECT_NAME} ]; then
70
-		MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME} | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
70
+		MINIMUM_PASSWORD_LENGTH=$(cat /usr/bin/${PROJECT_NAME}-utils-passwords | grep 'MINIMUM_PASSWORD_LENGTH=' | head -n 1 | awk -F '=' '{print $2}')
71 71
 	fi
72 72
 fi
73 73