diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-09-27 05:38:04 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-09-29 17:55:23 +0300 |
commit | 66e4d83917c2014f17ad0259fe3de664246e814b (patch) | |
tree | 4628999a2c959c46a0c6340cfa7c31c5b3ded112 | |
parent | 015588bfeab9cad37dccc9e75479adfc0a7c1da0 (diff) |
upgrade to NC14v0.61.0
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-autoupdate-nc.sh | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-nextcloud.sh | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-update-nextcloud.sh | 2 | ||||
-rwxr-xr-x | update.sh | 17 |
5 files changed, 14 insertions, 11 deletions
@@ -12,7 +12,7 @@ This code also generates the [NextCloudPi docker images](https://hub.docker.com/ ## Features * Raspbian 9 stretch - * Nextcloud 13.0.4 + * Nextcloud 14.0.1 * Apache 2.4.25, with HTTP2 enabled * PHP 7.0 (double the speed of PHP5!) * MariaDB 10 diff --git a/etc/ncp-config.d/nc-autoupdate-nc.sh b/etc/ncp-config.d/nc-autoupdate-nc.sh index 7b5bf232..32ab2537 100644 --- a/etc/ncp-config.d/nc-autoupdate-nc.sh +++ b/etc/ncp-config.d/nc-autoupdate-nc.sh @@ -13,7 +13,7 @@ NOTIFYUSER_=ncp DESCRIPTION="Automatically apply Nextcloud updates" # just change this value and re-activate in update.sh to upgrade users -VERSION=13.0.6 +VERSION=14.0.1 configure() { diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh index ed7a3b71..eee79c79 100644 --- a/etc/ncp-config.d/nc-nextcloud.sh +++ b/etc/ncp-config.d/nc-nextcloud.sh @@ -8,7 +8,7 @@ # More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ # -VER_=13.0.6 +VER_=14.0.1 BETA_=no MAXFILESIZE_=2G MEMORYLIMIT_=768M diff --git a/etc/ncp-config.d/nc-update-nextcloud.sh b/etc/ncp-config.d/nc-update-nextcloud.sh index 52398373..7ae50453 100644 --- a/etc/ncp-config.d/nc-update-nextcloud.sh +++ b/etc/ncp-config.d/nc-update-nextcloud.sh @@ -8,7 +8,7 @@ # More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/ # -VERSION_=13.0.6 +VERSION_=14.0.1 DESCRIPTION="Update current instance to a new Nextcloud version" configure() @@ -143,13 +143,8 @@ EOF # for non docker images [[ ! -f /.docker-image ]] && { - : - } - - # faster previews - [[ -f /etc/php/7.0/mods-available/imagick.ini ]] || { - apt-get update - apt-get install -y --no-install-recommends php-imagick imagemagick-6-common + # fix locale for Armbian images, for ncp-config + [[ "$LANG" == "" ]] && localectl set-locale LANG=en_US.utf8 } # no-origin policy for enhanced privacy @@ -183,6 +178,14 @@ EOF service mysql restart } + # update to NC14.0.1 + F="$CONFDIR"/nc-autoupdate-nc.sh + grep -q '^ACTIVE_=yes$' "$F" && { + cd "$CONFDIR" &>/dev/null + activate_script nc-autoupdate-nc.sh + cd - &>/dev/null + } + # fix locale for Armbian images, for ncp-config [[ "$LANG" == "" ]] && localectl set-locale LANG=en_US.utf8 |