From a7a463718c51f0ca37ae440f5a952cfd4cd04b46 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Wed, 26 Jul 2017 06:46:16 +0200 Subject: enable nc-news --- etc/nextcloudpi-config.d/nc-news.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/etc/nextcloudpi-config.d/nc-news.sh b/etc/nextcloudpi-config.d/nc-news.sh index 1a97ef97..f4edd1eb 100644 --- a/etc/nextcloudpi-config.d/nc-news.sh +++ b/etc/nextcloudpi-config.d/nc-news.sh @@ -23,11 +23,15 @@ configure() local URL=$( curl -s https://api.github.com/repos/nextcloud/news/releases | \ grep browser_download_url | head -1 | cut -d '"' -f 4 ) cd $NCDIR_/apps/ - wget $URL || return 1 + + echo "Downloading..." + wget $URL || return 1 + + echo "Installing..." tar -xf news.tar.gz || return 1 rm *.tar.gz - - echo "You can now activate it in the \"Apps\" section" + cd $NCDIR_ + sudo -u www-data php "$NCDIR_"/occ app:enable news } install() { :; } -- cgit v1.2.3