Sfoglia il codice sorgente

Always use the owncloud sample config

Bob Mottram 9 anni fa
parent
commit
105d8f0077
1 ha cambiato i file con 4 aggiunte e 8 eliminazioni
  1. 4
    8
      src/freedombone

+ 4
- 8
src/freedombone Vedi File

6531
     cp -r $OWNCLOUD_UPGRADE_PATH/data/* $OWNCLOUD_PATH/data/
6531
     cp -r $OWNCLOUD_UPGRADE_PATH/data/* $OWNCLOUD_PATH/data/
6532
     chown -R www-data:www-data $OWNCLOUD_PATH/data
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
     fi
6537
     fi
6538
+    cp $OWNCLOUD_PATH/config/config.sample.php $OWNCLOUD_PATH/config/config.php
6542
 
6539
 
6543
     if [ -f $OWNCLOUD_UPGRADE_PATH/config/config.php ]; then
6540
     if [ -f $OWNCLOUD_UPGRADE_PATH/config/config.php ]; then
6544
         OWNCLOUD_INSTANCE_ID=$(cat $OWNCLOUD_UPGRADE_PATH/config/config.php | grep "instanceid" | awk -F "'" '{print $4}')
6541
         OWNCLOUD_INSTANCE_ID=$(cat $OWNCLOUD_UPGRADE_PATH/config/config.php | grep "instanceid" | awk -F "'" '{print $4}')
6563
         sed -i "s|'installed'.*|'secret' => true,|g" $OWNCLOUD_PATH/config/config.php
6560
         sed -i "s|'installed'.*|'secret' => true,|g" $OWNCLOUD_PATH/config/config.php
6564
     fi
6561
     fi
6565
 
6562
 
6566
-    cp $OWNCLOUD_PATH/config/config.php $OWNCLOUD_PATH/config/config.upgrade
6567
     chown root:root $OWNCLOUD_PATH/config/config.php
6563
     chown root:root $OWNCLOUD_PATH/config/config.php
6568
 
6564
 
6569
     # re-index the files
6565
     # re-index the files