1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

use memcache with owncloud

This commit is contained in:
jkaberg 2014-08-12 00:10:52 +02:00
parent 7f01146c3d
commit 881b693cd4
2 changed files with 14 additions and 9 deletions

View File

@ -16,6 +16,7 @@ apt-get purge -qq -y owncloud*
# Install ownCloud from source if it is not already present
# TODO: Check version?
if [ ! -d /usr/local/lib/owncloud ]; then
echo Installing ownCloud...
rm -f /tmp/owncloud.zip
wget -qO /tmp/owncloud.zip https://download.owncloud.org/community/owncloud-7.0.1.zip
unzip /tmp/owncloud.zip -d /usr/local/lib
@ -32,13 +33,16 @@ if [ ! -f "/usr/local/lib/owncloud/config/config.php" ]; then
\ array (
\ 0 =>
\ array (
\ 'class' => 'OC_User_IMAP',
\ 'arguments' =>
\ array (
\ 0 => '{localhost:993/imap/ssl/novalidate-cert}',
\ 'class' => 'OC_User_IMAP',
\ 'arguments' =>
\ array (
\ 0 => '{localhost:993/imap/ssl/novalidate-cert}',
\ ),
\ ),
\ ),
\ ),
\ "memcached_servers" => array (
\ array('localhost', 11211),
\ ),
\);
?>
EOF
@ -63,15 +67,15 @@ chown -R www-data.www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud
# Download and install the mail app
if [ ! -d /usr/local/lib/owncloud/apps/mail ]; then
rm -f /tmp/owncloud_mail.zip
wget -qO /tmp/owncloud_mail.zip https://github.com/owncloud/mail/archive/master.zip
unzip /tmp/owncloud_mail.zip -d /usr/local/lib/owncloud/apps
hide_output wget -qO /tmp/owncloud_mail.zip https://github.com/owncloud/mail/archive/master.zip
hide_output unzip /tmp/owncloud_mail.zip -d /usr/local/lib/owncloud/apps
mv /usr/local/lib/owncloud/apps/mail-master /usr/local/lib/owncloud/apps/mail
rm -f /tmp/owncloud.zip
fi
# Currently the mail app dosnt ship with the dependencies, so we need to install them
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/lib/owncloud/apps/mail
php /usr/local/lib/owncloud/apps/mail/composer.phar install --working-dir=/usr/local/lib/owncloud/apps/mail
hide_output curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/lib/owncloud/apps/mail
hide_output php /usr/local/lib/owncloud/apps/mail/composer.phar install --working-dir=/usr/local/lib/owncloud/apps/mail
# TODO: enable mail app in ownCloud config?

View File

@ -21,6 +21,7 @@ php5enmod imap
# Copy Z-Push into place.
if [ ! -d /usr/local/lib/z-push ]; then
rm -f /tmp/zpush.zip
echo Installing z-push...
wget -qO /tmp/zpush.zip https://github.com/fmbiete/Z-Push-contrib/archive/master.zip
unzip /tmp/zpush.zip -d /usr/local/lib/
mv /usr/local/lib/Z-Push-contrib-master /usr/local/lib/z-push