]> source.dussan.org Git - nextcloud-server.git/commitdiff
set installed version in config file
authorRobin Appelman <icewind1991@gmail.com>
Thu, 28 Jul 2011 20:16:19 +0000 (22:16 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 28 Jul 2011 21:34:39 +0000 (23:34 +0200)
lib/setup.php

index 63ba4daab546e11f32b1ce74449e1b5b1c683723..f9bc6fd1bddde9d3b6dc4a5f188e4a8f5cc39acd 100644 (file)
@@ -76,6 +76,7 @@ class OC_SETUP {
                        //write the config file
                        OC_CONFIG::setValue('datadirectory', $datadir);
                        OC_CONFIG::setValue('dbtype', $dbtype);
+                       OC_CONFIG::setValue('version',implode('.',OC_UTIL::getVersion()));
                        if($dbtype == 'mysql') {
                                $dbuser = $options['dbuser'];
                                $dbpass = $options['dbpass'];