Commits

Sebastian Sdorra committed 2a9ac71

write version file on fresh installations

  • Participants
  • Parent commits 0d0280e

Comments (0)

Files changed (1)

scm-webapp/src/main/java/sonia/scm/upgrade/UpgradeManager.java

   {
     File baseDirectory = SCMContext.getContext().getBaseDirectory();
     File configDirectory = new File(baseDirectory, "config");
+    File versionFile = new File(configDirectory, "version.txt");
 
     if (configDirectory.exists())
     {
 
       String newVersion = SCMContext.getContext().getVersion();
 
-      File versionFile = new File(configDirectory, "version.txt");
-
       if (versionFile.exists())
       {
 
 
       // fresh installation
       IOUtil.mkdirs(configDirectory);
+      writeVersionFile(versionFile);
     }
   }