diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-07-26 07:46:16 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-11 00:17:55 +0300 |
commit | a7a463718c51f0ca37ae440f5a952cfd4cd04b46 (patch) | |
tree | 911faf5f538817da85df342c911065df17a4af10 | |
parent | 49ded4f73273ea18dea8d1969e5997056e9ff6a1 (diff) |
enable nc-newsv0.17.5
-rw-r--r-- | etc/nextcloudpi-config.d/nc-news.sh | 10 |
1 files 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() { :; } |