diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-12 09:28:07 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-12 09:28:07 +0300 |
commit | bd8f18472f527a6fc807b1666178f3c5ebbd5a1b (patch) | |
tree | 4e5d797afc5d5951e5426e31d0074215072eb139 | |
parent | c2ca13e4ab6aebe5f9b9d3679bd944b3fc1700a7 (diff) |
nc-news: small improvements
-rw-r--r-- | etc/nextcloudpi-config.d/nc-news.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/nextcloudpi-config.d/nc-news.sh b/etc/nextcloudpi-config.d/nc-news.sh index f4edd1eb..4627590e 100644 --- a/etc/nextcloudpi-config.d/nc-news.sh +++ b/etc/nextcloudpi-config.d/nc-news.sh @@ -14,7 +14,7 @@ # More at: https://ownyourbits.com # -NCDIR_=/var/www/nextcloud +NCDIR=/var/www/nextcloud DESCRIPTION="Install the latest News third party app" configure() @@ -25,11 +25,12 @@ configure() cd $NCDIR_/apps/ echo "Downloading..." - wget $URL || return 1 + wget $URL -O news.tar.gz || return 1 echo "Installing..." - tar -xf news.tar.gz || return 1 + tar -xf news.tar.gz || return 1 rm *.tar.gz + chown -R www-data:www-data * cd $NCDIR_ sudo -u www-data php "$NCDIR_"/occ app:enable news } |