Skip to content

Commit

Permalink
upgrade to NC14
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 29, 2018
1 parent 015588b commit 66e4d83
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-autoupdate-nc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-update-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
17 changes: 10 additions & 7 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 66e4d83

Please sign in to comment.