Skip to content
Snippets Groups Projects
Commit 105d8f00 authored by Bob Mottram's avatar Bob Mottram
Browse files

Always use the owncloud sample config

parent bd327011
No related branches found
No related tags found
No related merge requests found
......@@ -6531,14 +6531,11 @@ function upgrade_owncloud_finish {
cp -r $OWNCLOUD_UPGRADE_PATH/data/* $OWNCLOUD_PATH/data/
chown -R www-data:www-data $OWNCLOUD_PATH/data
 
if [ ! -f $OWNCLOUD_PATH/config/config.php ]; then
if [ ! -f $OWNCLOUD_PATH/config/config.sample.php ]; then
echo $'No owncloud configuration sample file found'
exit 54289
fi
cp $OWNCLOUD_PATH/config/config.sample.php $OWNCLOUD_PATH/config/config.php
chown root:root $OWNCLOUD_PATH/config/config.php
if [ ! -f $OWNCLOUD_PATH/config/config.sample.php ]; then
echo $'No owncloud configuration sample file found'
exit 54289
fi
cp $OWNCLOUD_PATH/config/config.sample.php $OWNCLOUD_PATH/config/config.php
 
if [ -f $OWNCLOUD_UPGRADE_PATH/config/config.php ]; then
OWNCLOUD_INSTANCE_ID=$(cat $OWNCLOUD_UPGRADE_PATH/config/config.php | grep "instanceid" | awk -F "'" '{print $4}')
......@@ -6563,7 +6560,6 @@ function upgrade_owncloud_finish {
sed -i "s|'installed'.*|'secret' => true,|g" $OWNCLOUD_PATH/config/config.php
fi
 
cp $OWNCLOUD_PATH/config/config.php $OWNCLOUD_PATH/config/config.upgrade
chown root:root $OWNCLOUD_PATH/config/config.php
 
# re-index the files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment