small script to update the mail app
This commit is contained in:
parent
52c50621cd
commit
57a441a547
|
@ -14,7 +14,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...
|
||||
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
|
||||
|
|
|
@ -21,7 +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...
|
||||
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
|
||||
|
|
|
@ -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! :-)
|
Loading…
Reference in New Issue