summaryrefslogtreecommitdiffstats
path: root/core/setup
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2014-01-31 16:43:12 +0100
committerBart Visscher <bartv@thisnet.nl>2014-01-31 16:43:12 +0100
commitbca725dc32e159d756f023d428816b8f9821b732 (patch)
treec3e1910e952728433c2572cea96fa8024c79d1d5 /core/setup
parent09d2ba017e603fe6ac237da7830d86d74b2da61c (diff)
parent271088a7a23ffcdb2082b6dfc5b6f50833612a0f (diff)
downloadnextcloud-server-bca725dc32e159d756f023d428816b8f9821b732.tar.gz
nextcloud-server-bca725dc32e159d756f023d428816b8f9821b732.zip
Merge branch 'master' into setup
Conflicts: core/setup.php
Diffstat (limited to 'core/setup')
-rw-r--r--core/setup/controller.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php
index 679efee81bf..0c87103138b 100644
--- a/core/setup/controller.php
+++ b/core/setup/controller.php
@@ -33,6 +33,9 @@ class Controller {
}
public function display($post) {
+
+ \OC_Util::addScript( '3rdparty', 'strengthify/jquery.strengthify' );
+ \OC_Util::addStyle( '3rdparty', 'strengthify/strengthify' );
\OC_Util::addScript('setup');
\OC_Template::printGuestPage('', 'installation', $post);
}
@@ -43,14 +46,26 @@ class Controller {
}
public function loadAutoConfig($post) {
+ $dbIsSet = isset($post['dbtype']);
+ $directoryIsSet = isset($post['directory']);
+ $adminAccountIsSet = isset($post['adminlogin']);
+
$autosetup_file = \OC::$SERVERROOT.'/config/autoconfig.php';
if( file_exists( $autosetup_file )) {
\OC_Log::write('core', 'Autoconfig file found, setting up owncloud...', \OC_Log::INFO);
include $autosetup_file;
- $post['install'] = 'true';
$post = array_merge ($post, $AUTOCONFIG);
- @unlink($autosetup_file);
}
+
+ if ($dbIsSet AND $directoryIsSet AND $adminAccountIsSet) {
+ $post['install'] = 'true';
+ if( file_exists( $autosetup_file )) {
+ unlink($autosetup_file);
+ }
+ }
+ $post['dbIsSet'] = $dbIsSet;
+ $post['directoryIsSet'] = $directoryIsSet;
+
return $post;
}