diff options
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | ncp-previewgenerator/ncp-previewgenerator-nc21/appinfo/info.xml | 5 | ||||
-rw-r--r-- | updates/1.45.0.sh | 39 |
3 files changed, 45 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md index 1b0414fe..36621a26 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v1.44.0](https://github.com/nextcloud/nextcloudpi/commit/cfc3d51) (2021-11-16) upgrade to NC22.2.1 +[v1.44.1](https://github.com/nextcloud/nextcloudpi/commit/3f6db7d) (2021-11-16) ncp-previewgenerator: update to NC22 + +[v1.44.0](https://github.com/nextcloud/nextcloudpi/commit/5ebef5e) (2021-11-16) upgrade to NC22.2.1 [v1.43.7](https://github.com/nextcloud/nextcloudpi/commit/6aba9b9) (2021-11-05) nc-restore: improve restoring data from SD to docker diff --git a/ncp-previewgenerator/ncp-previewgenerator-nc21/appinfo/info.xml b/ncp-previewgenerator/ncp-previewgenerator-nc21/appinfo/info.xml index db280895..c34e4b60 100644 --- a/ncp-previewgenerator/ncp-previewgenerator-nc21/appinfo/info.xml +++ b/ncp-previewgenerator/ncp-previewgenerator-nc21/appinfo/info.xml @@ -13,7 +13,8 @@ The first time you install this app, before using a cron job, you properly want </description> <licence>AGPL</licence> <author>Roeland Jago Douma</author> - <version>3.1.1</version> + <!-- set to a high version to avoid appstore upgrades --> + <version>99.99.99</version> <namespace>PreviewGenerator</namespace> <category>multimedia</category> <website>https://github.com/rullzer/previewgenerator</website> @@ -24,7 +25,7 @@ The first time you install this app, before using a cron job, you properly want </types> <dependencies> <php min-version="7.2"/> - <nextcloud min-version="20" max-version="21" /> + <nextcloud min-version="20" max-version="22" /> </dependencies> <commands> diff --git a/updates/1.45.0.sh b/updates/1.45.0.sh new file mode 100644 index 00000000..16778309 --- /dev/null +++ b/updates/1.45.0.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +set -e + +## BACKWARD FIXES ( for older images ) + +source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE + +# all images + +# this update brings a version bump for ncp-previewgenerator +ncc upgrade + +# docker images only +[[ -f /.docker-image ]] && { + : +} + +# for non docker images +[[ ! -f /.docker-image ]] && { + + # make sure redis is up before running nextclud-domain + cat > /usr/lib/systemd/system/nextcloud-domain.service <<'EOF' +[Unit] +Description=Register Current IP as Nextcloud trusted domain +Requires=network.target +After=mysql.service redis.service + +[Service] +ExecStart=/bin/bash /usr/local/bin/nextcloud-domain.sh +Restart=on-failure +RestartSec=5s + +[Install] +WantedBy=multi-user.target +EOF +} + +exit 0 |