ncp-previewgenerator: update to NC22

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2021-11-16 17:29:36 -07:00
parent 340a381926
commit 2aa95c657b
3 changed files with 45 additions and 3 deletions

View File

@ -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

View File

@ -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>

39
updates/1.45.0.sh Normal file
View File

@ -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