From e828dd63e12a0e264f17770e1ea29dbb18b0a057 Mon Sep 17 00:00:00 2001 From: jkaberg Date: Tue, 12 Aug 2014 16:45:36 +0200 Subject: [PATCH] auto enable apps in owncloud (FINAL COMMIT!) --- setup/owncloud.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/owncloud.sh b/setup/owncloud.sh index 59f3fbbf..0e4652f1 100644 --- a/setup/owncloud.sh +++ b/setup/owncloud.sh @@ -7,7 +7,7 @@ source /etc/mailinabox.conf # load global vars apt_install \ dbconfig-common \ php5-cli php5-sqlite php5-gd php5-imap php5-curl php-pear php-apc curl libapr1 libtool libcurl4-openssl-dev php-xml-parser \ - php5 php5-dev php5-gd php5-fpm memcached php5-memcache unzip sqlite + php5 php5-dev php5-gd php5-fpm memcached php5-memcache unzip apt-get purge -qq -y owncloud* @@ -84,5 +84,9 @@ chmod -R 777 /usr/local/lib/owncloud/apps/mail/vendor/ezyang/htmlpurifier/librar # TODO: somehow change the cron option in ownClouds config, not exposed afaik? (crontab -u www-user -l; echo "*/15 * * * * php -f /usr/local/lib/owncloud/cron.php" ) | crontab -u www-user - +# Enable apps. +hide_output php /usr/local/lib/owncloud/console.php app:enable user_external +hide_output php /usr/local/lib/owncloud/console.php app:enable mail + php5enmod imap restart_service php5-fpm \ No newline at end of file