Explorar o código

fix:password set

rufengsuixing %!s(int64=5) %!d(string=hai) anos
pai
achega
edb82bea36
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      root/etc/init.d/AdGuardHome

+ 1 - 1
root/etc/init.d/AdGuardHome

@@ -396,6 +396,7 @@ start_service() {
 	config_load "${CONFIGURATION}"
 	# update password
 	config_get hashpass $CONFIGURATION hashpass ""
+	config_get configpath $CONFIGURATION configpath "/etc/AdGuardHome.yaml"
 	if [ -n "$hashpass" ]; then
 		config_editor "users.password" "$hashpass" "$configpath"
 		uci set $CONFIGURATION.$CONFIGURATION.hashpass=""
@@ -434,7 +435,6 @@ start_service() {
 		fi
 	fi
 	local ADDITIONAL_ARGS=""
-	config_get configpath $CONFIGURATION configpath "/etc/AdGuardHome.yaml"
 	config_get binpath $CONFIGURATION binpath "/usr/bin/AdGuardHome/AdGuardHome"
 
 	mkdir -p ${binpath%/*}