瀏覽代碼

Obtain min password length from utils script

Bob Mottram 8 年之前
父節點
當前提交
88d4bd3ceb
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/freedombone-controlpanel

+ 2
- 2
src/freedombone-controlpanel 查看文件

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