浏览代码

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