Skip to content

Commit 72d2d00

Browse files
committed
upgrade to NC17.0.1
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 9fb8468 commit 72d2d00

File tree

7 files changed

+21
-7
lines changed

7 files changed

+21
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Find the full documentation at [docs.nextcloudpi.com](http://docs.nextcloudpi.co
1616
## Features
1717

1818
* Debian/Raspbian 10 Buster
19-
* Nextcloud 16.0.5
19+
* Nextcloud 17.0.1
2020
* Apache 2.4.25, with HTTP2 enabled
2121
* PHP 7.3
2222
* MariaDB 10

bin/ncp/CONFIG/nc-init.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ configure()
2626

2727
# launch mariadb if not already running
2828
if ! pgrep -c mysqld &>/dev/null; then
29-
mysqld &
29+
mysqld &
3030
fi
3131

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

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

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

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

etc/logo

-57.7 KB
Binary file not shown.

etc/ncp-config.d/nc-nextcloud.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"id": "VER",
1111
"name": "Version",
12-
"value": "16.0.5"
12+
"value": "17.0.1"
1313
},
1414
{
1515
"id": "BETA",

etc/ncp.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"nextcloud_version": "16.0.5",
2+
"nextcloud_version": "17.0.1",
33
"php_version": "7.3",
44
"release": "buster"
55
}

updates/1.19.0.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE
1818
}
1919
}
2020

21+
# if using NCP original logo, replace with the new version
22+
datadir=$(ncc config:system:get datadirectory)
23+
id=$(grep instanceid /var/www/nextcloud/config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g")
24+
sum_orig=ca39ff587bd899cb92eb0f5a6d429824
25+
sum_curr=$(md5sum "${datadir}"/appdata_*/theming/images/logo | awk '{ print $1 }')
26+
[[ "${sum_orig}" == "${sum_curr}" ]] && {
27+
cp etc/logo "${datadir}/appdata_${id}/theming/images/logo"
28+
cp etc/logo "${datadir}/appdata_${id}/theming/images/logoheader"
29+
}
30+
2131
# docker images only
2232
[[ -f /.docker-image ]] && {
2333
:

0 commit comments

Comments
 (0)