Bläddra i källkod

Always use the owncloud sample config

Bob Mottram 9 år sedan
förälder
incheckning
105d8f0077
1 ändrade filer med 4 tillägg och 8 borttagningar
  1. 4
    8
      src/freedombone

+ 4
- 8
src/freedombone Visa fil

@@ -6531,14 +6531,11 @@ function upgrade_owncloud_finish {
6531 6531
     cp -r $OWNCLOUD_UPGRADE_PATH/data/* $OWNCLOUD_PATH/data/
6532 6532
     chown -R www-data:www-data $OWNCLOUD_PATH/data
6533 6533
 
6534
-    if [ ! -f $OWNCLOUD_PATH/config/config.php ]; then
6535
-        if [ ! -f $OWNCLOUD_PATH/config/config.sample.php ]; then
6536
-            echo $'No owncloud configuration sample file found'
6537
-            exit 54289
6538
-        fi
6539
-        cp $OWNCLOUD_PATH/config/config.sample.php $OWNCLOUD_PATH/config/config.php
6540
-        chown root:root $OWNCLOUD_PATH/config/config.php
6534
+    if [ ! -f $OWNCLOUD_PATH/config/config.sample.php ]; then
6535
+        echo $'No owncloud configuration sample file found'
6536
+        exit 54289
6541 6537
     fi
6538
+    cp $OWNCLOUD_PATH/config/config.sample.php $OWNCLOUD_PATH/config/config.php
6542 6539
 
6543 6540
     if [ -f $OWNCLOUD_UPGRADE_PATH/config/config.php ]; then
6544 6541
         OWNCLOUD_INSTANCE_ID=$(cat $OWNCLOUD_UPGRADE_PATH/config/config.php | grep "instanceid" | awk -F "'" '{print $4}')
@@ -6563,7 +6560,6 @@ function upgrade_owncloud_finish {
6563 6560
         sed -i "s|'installed'.*|'secret' => true,|g" $OWNCLOUD_PATH/config/config.php
6564 6561
     fi
6565 6562
 
6566
-    cp $OWNCLOUD_PATH/config/config.php $OWNCLOUD_PATH/config/config.upgrade
6567 6563
     chown root:root $OWNCLOUD_PATH/config/config.php
6568 6564
 
6569 6565
     # re-index the files