mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
use memcache with owncloud
This commit is contained in:
parent
7f01146c3d
commit
881b693cd4
@ -16,6 +16,7 @@ apt-get purge -qq -y owncloud*
|
|||||||
# Install ownCloud from source if it is not already present
|
# Install ownCloud from source if it is not already present
|
||||||
# TODO: Check version?
|
# TODO: Check version?
|
||||||
if [ ! -d /usr/local/lib/owncloud ]; then
|
if [ ! -d /usr/local/lib/owncloud ]; then
|
||||||
|
echo Installing ownCloud...
|
||||||
rm -f /tmp/owncloud.zip
|
rm -f /tmp/owncloud.zip
|
||||||
wget -qO /tmp/owncloud.zip https://download.owncloud.org/community/owncloud-7.0.1.zip
|
wget -qO /tmp/owncloud.zip https://download.owncloud.org/community/owncloud-7.0.1.zip
|
||||||
unzip /tmp/owncloud.zip -d /usr/local/lib
|
unzip /tmp/owncloud.zip -d /usr/local/lib
|
||||||
@ -32,13 +33,16 @@ if [ ! -f "/usr/local/lib/owncloud/config/config.php" ]; then
|
|||||||
\ array (
|
\ array (
|
||||||
\ 0 =>
|
\ 0 =>
|
||||||
\ array (
|
\ array (
|
||||||
\ 'class' => 'OC_User_IMAP',
|
\ 'class' => 'OC_User_IMAP',
|
||||||
\ 'arguments' =>
|
\ 'arguments' =>
|
||||||
\ array (
|
\ array (
|
||||||
\ 0 => '{localhost:993/imap/ssl/novalidate-cert}',
|
\ 0 => '{localhost:993/imap/ssl/novalidate-cert}',
|
||||||
|
\ ),
|
||||||
\ ),
|
\ ),
|
||||||
\ ),
|
\ ),
|
||||||
\ ),
|
\ "memcached_servers" => array (
|
||||||
|
\ array('localhost', 11211),
|
||||||
|
\ ),
|
||||||
\);
|
\);
|
||||||
?>
|
?>
|
||||||
EOF
|
EOF
|
||||||
@ -63,15 +67,15 @@ chown -R www-data.www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud
|
|||||||
# Download and install the mail app
|
# Download and install the mail app
|
||||||
if [ ! -d /usr/local/lib/owncloud/apps/mail ]; then
|
if [ ! -d /usr/local/lib/owncloud/apps/mail ]; then
|
||||||
rm -f /tmp/owncloud_mail.zip
|
rm -f /tmp/owncloud_mail.zip
|
||||||
wget -qO /tmp/owncloud_mail.zip https://github.com/owncloud/mail/archive/master.zip
|
hide_output 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 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
|
mv /usr/local/lib/owncloud/apps/mail-master /usr/local/lib/owncloud/apps/mail
|
||||||
rm -f /tmp/owncloud.zip
|
rm -f /tmp/owncloud.zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Currently the mail app dosnt ship with the dependencies, so we need to install them
|
# 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
|
hide_output 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 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?
|
# TODO: enable mail app in ownCloud config?
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ php5enmod imap
|
|||||||
# Copy Z-Push into place.
|
# Copy Z-Push into place.
|
||||||
if [ ! -d /usr/local/lib/z-push ]; then
|
if [ ! -d /usr/local/lib/z-push ]; then
|
||||||
rm -f /tmp/zpush.zip
|
rm -f /tmp/zpush.zip
|
||||||
|
echo Installing z-push...
|
||||||
wget -qO /tmp/zpush.zip https://github.com/fmbiete/Z-Push-contrib/archive/master.zip
|
wget -qO /tmp/zpush.zip https://github.com/fmbiete/Z-Push-contrib/archive/master.zip
|
||||||
unzip /tmp/zpush.zip -d /usr/local/lib/
|
unzip /tmp/zpush.zip -d /usr/local/lib/
|
||||||
mv /usr/local/lib/Z-Push-contrib-master /usr/local/lib/z-push
|
mv /usr/local/lib/Z-Push-contrib-master /usr/local/lib/z-push
|
||||||
|
Loading…
Reference in New Issue
Block a user