1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

small script to update the mail app

This commit is contained in:
jkaberg 2014-08-12 15:27:37 +02:00
parent 52c50621cd
commit 57a441a547
3 changed files with 19 additions and 2 deletions

View File

@ -14,7 +14,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... 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

View File

@ -21,7 +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... 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

17
tools/update_mail_app.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Simple script to update the mail app in ownCloud, not needed once it reaches beta+
echo installing mail app...
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
mv /usr/local/lib/owncloud/apps/mail-master /usr/local/lib/owncloud/apps/mail
rm -f /tmp/owncloud.zip
echo installing php composer and mail app dependencies...
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
chmod -R 777 /usr/local/lib/owncloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer
echo DONE! :-)