]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: don't migrate when the main config file is not available
authorJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2015 16:29:09 +0000 (17:29 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2015 16:29:09 +0000 (17:29 +0100)
src/config.c

index 97f934ee89a6671c567b825e392e815a88c0bf61..78d2be7093da8d3306ab9c7ff991587b7d538910 100644 (file)
@@ -1676,6 +1676,7 @@ config_boot ( const char *path, gid_t gid, uid_t uid )
   config2 = hts_settings_load("config");
   if (!config2) {
     tvhlog(LOG_DEBUG, "config", "no configuration, loading defaults");
+    config_newcfg = 1;
   } else {
     f = htsmsg_field_find(config2, "language");
     if (f && f->hmf_type == HMF_STR) {