Skip to content

Commit 3cf269a

Browse files
committed
upgrade to NC19.0.2
Signed-off-by: nachoparker <[email protected]>
1 parent 4c5b207 commit 3cf269a

File tree

10 files changed

+40
-7
lines changed

10 files changed

+40
-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 18.0.7
19+
* Nextcloud 19.0.2
2020
* Apache 2.4.25, with HTTP2 enabled
2121
* PHP 7.3
2222
* MariaDB 10

bin/ncp-update-nc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ find nextcloud/ -type f -exec chmod 640 {} \;
181181
echo "Upgrade..."
182182
sudo -u www-data php nextcloud/occ upgrade # && false # test point
183183
sudo -u www-data php nextcloud/occ db:add-missing-indices
184+
sudo -u www-data php nextcloud/occ db:add-missing-columns
184185

185186
# done
186187
####################

bin/ncp/BACKUPS/nc-import-ncp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
CFGDIR="/usr/local/etc/ncp-config.d"
1313

14-
configure()
14+
configure()
1515
{
1616
[[ -f "$FILE" ]] || { echo "export file $FILE does not exist"; return 1; }
1717

bin/ncp/CONFIG/nc-nextcloud.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ install()
2727
$APTINSTALL -t $RELEASE php-smbclient exfat-fuse exfat-utils # for external storage
2828
$APTINSTALL -t $RELEASE php${PHPVER}-exif # for gallery
2929
$APTINSTALL -t $RELEASE php${PHPVER}-gmp # for bookmarks
30+
$APTINSTALL -t $RELEASE php-bcmath # for LDAP
3031
#$APTINSTALL -t imagemagick php${PHPVER}-imagick ghostscript # for gallery
3132

3233

etc/library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function clear_password_fields()
296296
function apt_install()
297297
{
298298
apt-get update
299-
apt-get install -y --no-install-recommends -o Dpkg::Options::=--force-confdef
299+
apt-get install -y --no-install-recommends -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confold" "$@"
300300
}
301301

302302
function notify_admin()

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": "18.0.7"
12+
"value": "19.0.2"
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": "18.0.7",
2+
"nextcloud_version": "19.0.2",
33
"php_version": "7.3",
44
"release": "buster"
55
}

ncp-app/appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<category>tools</category>
1313
<bugs>https://github.com/nextcloud/nextcloudpi/issues</bugs>
1414
<dependencies>
15-
<nextcloud min-version="14" max-version="18"/>
15+
<nextcloud min-version="14" max-version="19"/>
1616
</dependencies>
1717
<navigations>
1818
<navigation>

ncp-previewgenerator/appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The first time you activate this app through 'nc-previews-auto', you properly wa
2424
</types>
2525
<dependencies>
2626
<php min-version="7.0"/>
27-
<nextcloud min-version="14" max-version="18" />
27+
<nextcloud min-version="14" max-version="19" />
2828
</dependencies>
2929

3030
<commands>

updates/1.30.0.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
## BACKWARD FIXES ( for older images )
6+
7+
source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE
8+
9+
# all images
10+
11+
# make sure these are installed as well in all upgrade paths
12+
apt_install php${PHPVER}-gmp haveged lsb-release php-smbclient exfat-fuse exfat-utils file
13+
14+
# for NC19.0.1
15+
apt_install php-bcmath
16+
17+
## delayed in bg so it does not kill the connection, and we get AJAX response
18+
bash -c "sleep 3; service php${PHPVER}-fpm restart" &>/dev/null &
19+
20+
21+
# docker images only
22+
[[ -f /.docker-image ]] && {
23+
:
24+
}
25+
26+
# for non docker images
27+
[[ ! -f /.docker-image ]] && {
28+
:
29+
}
30+
31+
exit 0

0 commit comments

Comments
 (0)