Skip to content

Commit

Permalink
upgrade to NC17.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
nachoparker committed Dec 8, 2019
1 parent 9fb8468 commit 72d2d00
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Find the full documentation at [docs.nextcloudpi.com](http://docs.nextcloudpi.co
## Features

* Debian/Raspbian 10 Buster
* Nextcloud 16.0.5
* Nextcloud 17.0.1
* Apache 2.4.25, with HTTP2 enabled
* PHP 7.3
* MariaDB 10
Expand Down
8 changes: 5 additions & 3 deletions bin/ncp/CONFIG/nc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ configure()

# launch mariadb if not already running
if ! pgrep -c mysqld &>/dev/null; then
mysqld &
mysqld &
fi

# wait for mariadb
pgrep -x mysqld &>/dev/null || {
pgrep -x mysqld &>/dev/null || {
echo "mariaDB process not found. Waiting..."
while :; do
[[ -S /run/mysqld/mysqld.sock ]] && break
Expand Down Expand Up @@ -125,7 +125,9 @@ EOF
local ID=$( grep instanceid config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g" )
[[ "$ID" == "" ]] && { echo "failed to get ID"; return 1; }
mkdir -p data/appdata_${ID}/theming/images
cp /usr/local/etc/logo /usr/local/etc/background data/appdata_${ID}/theming/images
cp /usr/local/etc/background data/appdata_${ID}/theming/images
cp /usr/local/etc/logo data/appdata_${ID}/theming/images/logo
cp /usr/local/etc/logo data/appdata_${ID}/theming/images/logoheader
chown -R www-data:www-data data/appdata_${ID}
}

Expand Down
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

[v1.18.2](https://github.com/nextcloud/nextcloudpi/commit/b737569) (2019-11-18) ncp-app: bump to NC17
[v1.19.0](https://github.com/nextcloud/nextcloudpi/commit/c8e296c) (2019-11-30) upgrade to NC17.0.1

[v1.18.2 ](https://github.com/nextcloud/nextcloudpi/commit/0fc4aea) (2019-11-18) ncp-app: bump to NC17

[v1.18.1 ](https://github.com/nextcloud/nextcloudpi/commit/e975320) (2019-11-18) Letsencrypt: support second domain (#1025)

Expand Down
Binary file modified etc/logo
Binary file not shown.
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": "16.0.5"
"value": "17.0.1"
},
{
"id": "BETA",
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"nextcloud_version": "16.0.5",
"nextcloud_version": "17.0.1",
"php_version": "7.3",
"release": "buster"
}
10 changes: 10 additions & 0 deletions updates/1.19.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE
}
}

# if using NCP original logo, replace with the new version
datadir=$(ncc config:system:get datadirectory)
id=$(grep instanceid /var/www/nextcloud/config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g")
sum_orig=ca39ff587bd899cb92eb0f5a6d429824
sum_curr=$(md5sum "${datadir}"/appdata_*/theming/images/logo | awk '{ print $1 }')
[[ "${sum_orig}" == "${sum_curr}" ]] && {
cp etc/logo "${datadir}/appdata_${id}/theming/images/logo"
cp etc/logo "${datadir}/appdata_${id}/theming/images/logoheader"
}

# docker images only
[[ -f /.docker-image ]] && {
:
Expand Down

0 comments on commit 72d2d00

Please sign in to comment.