summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-17 21:59:43 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-17 22:10:03 +0100
commit45cff7b7378ff351158d9d93b879dcfc156171aa (patch)
tree9909d81cb7d776bf332e5abd3137138bae82b8ff /lib/setup.php
parentbd7227bb934c6d618c46eb818c8ce0f6ecb64e29 (diff)
downloadnextcloud-server-45cff7b7378ff351158d9d93b879dcfc156171aa.tar.gz
nextcloud-server-45cff7b7378ff351158d9d93b879dcfc156171aa.zip
Move storing "last updated at" time to the app config
This way the config.php file is not changed every time you go to the personal page. Step to make it possible to have a read-only config.php most of the time
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/setup.php b/lib/setup.php
index eb32e84713f..3e46a3dcc9a 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -77,8 +77,6 @@ class OC_Setup {
OC_Config::setValue('datadirectory', $datadir);
OC_Config::setValue('dbtype', $dbtype);
OC_Config::setValue('version',implode('.',OC_Util::getVersion()));
- OC_Config::setValue('installedat',microtime(true));
- OC_Config::setValue('lastupdatedat',microtime(true));
if($dbtype == 'mysql') {
$dbuser = $options['dbuser'];
$dbpass = $options['dbpass'];
@@ -224,6 +222,9 @@ class OC_Setup {
}
if(count($error) == 0) {
+ OC_Appconfig::setValue('core', 'installedat',microtime(true));
+ OC_Appconfig::setValue('core', 'lastupdatedat',microtime(true));
+
//create the user and group
OC_User::createUser($username, $password);
OC_Group::createGroup('admin');