diff options
author | Oliver V <ovpc@users.noreply.github.com> | 2018-02-05 23:58:36 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-02-05 23:58:36 +0300 |
commit | 776529f88932bcd94e4a9515e092a3ffe210fd27 (patch) | |
tree | 17033a146d826d84e573d93ee259408214e84848 /etc/nextcloudpi-config.d | |
parent | 67b12bb9bea65bdee758f280286bf735fe4ec231 (diff) |
nc-nextcloud: add option to install beta (#354)
If yes it adds "pre" to the download path
Diffstat (limited to 'etc/nextcloudpi-config.d')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-nextcloud.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/nc-nextcloud.sh b/etc/nextcloudpi-config.d/nc-nextcloud.sh index 995a2d56..ff70a5e3 100644 --- a/etc/nextcloudpi-config.d/nc-nextcloud.sh +++ b/etc/nextcloudpi-config.d/nc-nextcloud.sh @@ -123,11 +123,15 @@ GRANT ALL PRIVILEGES ON nextcloud.* TO $DBADMIN@localhost; EXIT EOF + ## IF BETA SELECTED ADD "pre" to DOWNLOAD PATH +if [[ "BETA_" == yes ]]; then + local PREFIX="pre" + ## DOWNLOAD AND (OVER)WRITE NEXTCLOUD cd /var/www/ echo "Downloading Nextcloud $VER_..." - wget -q https://download.nextcloud.com/server/releases/nextcloud-$VER_.tar.bz2 -O nextcloud.tar.bz2 || return 1 + wget -q https://download.nextcloud.com/server/${PREFIX}releases/nextcloud-$VER_.tar.bz2 -O nextcloud.tar.bz2 || return 1 rm -rf nextcloud echo "Installing Nextcloud $VER_..." |