Skip to content

Commit

Permalink
upgrade to NC15
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jan 11, 2019
1 parent 9de1f51 commit 0ff1df9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 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

* Debian/Raspbian 9 stretch
* Nextcloud 14.0.4
* Nextcloud 15.0.1
* Apache 2.4.25, with HTTP2 enabled
* PHP 7.2
* MariaDB 10
Expand Down
2 changes: 1 addition & 1 deletion bin/ncp/CONFIG/nc-autoupdate-nc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


# just change this value and re-activate in update.sh to upgrade users
VERSION=14.0.4
VERSION=15.0.1

configure()
{
Expand Down
5 changes: 3 additions & 2 deletions bin/ncp/CONFIG/nc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,21 @@ EOF
sudo -u www-data php /var/www/nextcloud/occ app:install notes
sudo -u www-data php /var/www/nextcloud/occ app:install tasks
sudo -u www-data php /var/www/nextcloud/occ app:install news
sudo -u www-data php /var/www/nextcloud/occ app:install admin_notifications
sudo -u www-data php /var/www/nextcloud/occ app:install previewgenerator

sudo -u www-data php /var/www/nextcloud/occ app:enable calendar
sudo -u www-data php /var/www/nextcloud/occ app:enable contacts
sudo -u www-data php /var/www/nextcloud/occ app:enable notes
sudo -u www-data php /var/www/nextcloud/occ app:enable tasks
sudo -u www-data php /var/www/nextcloud/occ app:enable news
sudo -u www-data php /var/www/nextcloud/occ app:enable admin_notifications
sudo -u www-data php /var/www/nextcloud/occ app:enable previewgenerator

# other
sudo -u www-data php /var/www/nextcloud/occ config:system:set overwriteprotocol --value=https

# TODO temporary workaround for https://github.com/nextcloud/server/pull/13358
sudo -u www-data php /var/www/nextcloud/occ -n db:convert-filecache-bigint

echo "NC init done"
}

Expand Down
5 changes: 3 additions & 2 deletions bin/ncp/TOOLS/nc-update-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
#

LATEST=14.0.4
LATEST=15.0.1

configure()
{
[[ "$VERSION" == "0" ]] && VERSION="$LATEST"
bash /usr/local/bin/ncp-update-nc "$VERSION"
bash /usr/local/bin/ncp-update-nc "$VERSION" && \
sudo -u www-data php /var/www/nextcloud/occ -n db:convert-filecache-bigint
}

install() { :; }
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-nextcloud.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"id": "VER",
"name": "Version",
"value": "14.0.4"
"value": "15.0.1"
},
{
"id": "BETA",
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ chmod 770 /var/www/ncp-web
sed -i "s|.* [* * * *]|*/5 * * * *|" spdnsupdater
}

# update to NC14.0.4
# update to NC15
is_active_app nc-autoupdate-nc && run_app nc-autoupdate-nc

# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
Expand Down

0 comments on commit 0ff1df9

Please sign in to comment.