dont replace owncloud config if it exists (we dont want this as it will contain vital data)
This commit is contained in:
parent
44fcdc2066
commit
f287ca3b6c
1 changed files with 5 additions and 4 deletions
|
@ -23,11 +23,10 @@ if [ ! -d /usr/local/lib/owncloud ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a configuration file.
|
# 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
|
<?php
|
||||||
/*
|
|
||||||
* Do not edit. Written by Mail-in-a-Box. Regenerated on updates.
|
|
||||||
*/
|
|
||||||
\$CONFIG = array (
|
\$CONFIG = array (
|
||||||
\ 'datadirectory' => '$STORAGE_ROOT/owncloud',
|
\ 'datadirectory' => '$STORAGE_ROOT/owncloud',
|
||||||
\ array (
|
\ array (
|
||||||
|
@ -41,7 +40,9 @@ cat - > /usr/local/lib/owncloud/config/config.php <<EOF;
|
||||||
\ ),
|
\ ),
|
||||||
\ ),
|
\ ),
|
||||||
\);
|
\);
|
||||||
|
?>
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO: Insert the following above (owncloud config generation) when we found a good solution:
|
# TODO: Insert the following above (owncloud config generation) when we found a good solution:
|
||||||
# 'mail_smtpmode' => 'smtp',
|
# 'mail_smtpmode' => 'smtp',
|
||||||
|
|
Loading…
Reference in a new issue