Browse Source

fix: AdGuardHome yaml upgrade policy, ref AdguardTeam/AdGuardHome#6682

dev
Dnomd343 11 months ago
parent
commit
fab47622cb
  1. 2
      src/applet/adguard.c

2
src/applet/adguard.c

@ -107,7 +107,7 @@ process* adguard_load(adguard *info, const char *dir) { // load adguard options
if (!is_file_exist(adguard_config_file)) { // AdGuardHome configure not exist if (!is_file_exist(adguard_config_file)) { // AdGuardHome configure not exist
log_info("Create AdGuardHome configure"); log_info("Create AdGuardHome configure");
adguard_config_ret = adguard_config(info, "{}"); // begin with empty json adguard_config_ret = adguard_config(info, "{\"schema_version\": 27}");
} else { // configure exist -> modify } else { // configure exist -> modify
char *adguard_config_content = read_file(adguard_config_file); char *adguard_config_content = read_file(adguard_config_file);
char *adguard_config_json = to_json_format(adguard_config_content); char *adguard_config_json = to_json_format(adguard_config_content);

Loading…
Cancel
Save