Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/nextcloudpi-config.d/nc-news.sh10
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() { :; }