Browse Source

fix upgrade protect bug

rufengsuixing 5 years ago
parent
commit
ac3d04037e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      root/etc/init.d/AdGuardHome

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

@@ -429,7 +429,7 @@ start_service() {
 
 
 	# hack to save config file when upgrade system
 	# hack to save config file when upgrade system
 	config_get upprotect $CONFIGURATION upprotect ""
 	config_get upprotect $CONFIGURATION upprotect ""
-	eval upprotect=${upprotect// /\\n}
+	eval upprotect=${upprotect// /\\\\n}
 	echo -e "$upprotect">/lib/upgrade/keep.d/luci-app-adguardhome
 	echo -e "$upprotect">/lib/upgrade/keep.d/luci-app-adguardhome
 	
 	
 	config_get logfile $CONFIGURATION logfile ""
 	config_get logfile $CONFIGURATION logfile ""