dont replace owncloud config if it exists (we dont want this as it will contain vital data)

This commit is contained in:
jkaberg 2014-08-11 23:01:18 +02:00
parent 44fcdc2066
commit f287ca3b6c
1 changed files with 5 additions and 4 deletions

View File

@ -23,11 +23,10 @@ if [ ! -d /usr/local/lib/owncloud ]; then
fi
# Create a configuration file.
cat - > /usr/local/lib/owncloud/config/config.php <<EOF;
if [ ! -f "/usr/local/lib/owncloud/config/config.php" ]; then
cat - > /usr/local/lib/owncloud/config/config.php <<EOF;
<?php
/*
* Do not edit. Written by Mail-in-a-Box. Regenerated on updates.
*/
\$CONFIG = array (
\ 'datadirectory' => '$STORAGE_ROOT/owncloud',
\ array (
@ -41,7 +40,9 @@ cat - > /usr/local/lib/owncloud/config/config.php <<EOF;
\ ),
\ ),
\);
?>
EOF
fi
# TODO: Insert the following above (owncloud config generation) when we found a good solution:
# 'mail_smtpmode' => 'smtp',