Commits

Arjan Scherpenisse  committed 9f940c7

Only set zotonic version when site has a database.

  • Participants
  • Parent commits 8fb8723

Comments (0)

Files changed (1)

File src/support/z_site_startup.erl

 
     % Put software version in database
     % @todo Check if current version != database version and run upgrader (and downgrader?)
-    case z_context:site(Context) of
-        zotonic_status -> ok;
+    case m_site:get(dbdatabase, Context) of
+        none -> ok;
         _ -> m_config:set_value(zotonic, version, ?ZOTONIC_VERSION, Context)
     end,
-
+    
     % Let the module handle their startup code, the whole site is now up and running.
     z_notifier:notify(site_startup, Context),
     ignore.