Check if the user didn't want to setup Nextcloud

This commit is contained in:
dkoao 2019-09-26 02:41:33 +00:00
parent bc7aa885e4
commit 27b3e8f1a1
1 changed files with 22 additions and 19 deletions

View File

@ -131,25 +131,28 @@ cat > $RCM_CONFIG <<EOF;
EOF EOF
# Configure CardDav # Configure CardDav
cat > ${RCM_PLUGIN_DIR}/carddav/config.inc.php <<EOF; if [ "${DISABLE_NEXTCLOUD}" != "1" ]; then
<?php
/* Do not edit. Written by Mail-in-a-Box. Regenerated on updates. */ cat > ${RCM_PLUGIN_DIR}/carddav/config.inc.php <<EOF;
\$prefs['_GLOBAL']['hide_preferences'] = true; <?php
\$prefs['_GLOBAL']['suppress_version_warning'] = true; /* Do not edit. Written by Mail-in-a-Box. Regenerated on updates. */
\$prefs['ownCloud'] = array( \$prefs['_GLOBAL']['hide_preferences'] = true;
'name' => 'ownCloud', \$prefs['_GLOBAL']['suppress_version_warning'] = true;
'username' => '%u', // login username \$prefs['ownCloud'] = array(
'password' => '%p', // login password 'name' => 'ownCloud',
'url' => 'https://${PRIMARY_HOSTNAME}/cloud/remote.php/carddav/addressbooks/%u/contacts', 'username' => '%u', // login username
'active' => true, 'password' => '%p', // login password
'readonly' => false, 'url' => 'https://${PRIMARY_HOSTNAME}/cloud/remote.php/carddav/addressbooks/%u/contacts',
'refresh_time' => '02:00:00', 'active' => true,
'fixed' => array('username','password'), 'readonly' => false,
'preemptive_auth' => '1', 'refresh_time' => '02:00:00',
'hide' => false, 'fixed' => array('username','password'),
); 'preemptive_auth' => '1',
?> 'hide' => false,
EOF );
?>
EOF
fi
# Create writable directories. # Create writable directories.
mkdir -p /var/log/roundcubemail /var/tmp/roundcubemail $STORAGE_ROOT/mail/roundcube mkdir -p /var/log/roundcubemail /var/tmp/roundcubemail $STORAGE_ROOT/mail/roundcube