Skip to content

Commit

Permalink
enable nc-news
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent 49ded4f commit a7a4637
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions etc/nextcloudpi-config.d/nc-news.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() { :; }
Expand Down

0 comments on commit a7a4637

Please sign in to comment.