enable nc-news

This commit is contained in:
nachoparker 2017-07-26 06:46:16 +02:00
parent 49ded4f732
commit a7a463718c

View File

@ -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() { :; }