mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +00:00
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
@ -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 New Issue
Block a user