mailinabox/tools/update_mail_app.sh

17 lines
813 B
Bash
Raw Normal View History

2014-08-12 13:27:37 +00:00
#!/bin/bash
# Simple script to update the mail app in ownCloud, not needed once it reaches beta+
2014-08-12 13:28:15 +00:00
echo "installing mail app..."
2014-08-12 13:27:37 +00:00
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
2014-08-12 13:28:15 +00:00
echo "installing php composer and mail app dependencies..."
2014-08-12 13:27:37 +00:00
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
2014-08-12 13:28:15 +00:00
echo "DONE! :-)"