Skip to content

Commit 2aa95c6

Browse files
committed
ncp-previewgenerator: update to NC22
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 340a381 commit 2aa95c6

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

changelog.md

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

2-
[v1.44.0](https://github.com/nextcloud/nextcloudpi/commit/cfc3d51) (2021-11-16) upgrade to NC22.2.1
2+
[v1.44.1](https://github.com/nextcloud/nextcloudpi/commit/3f6db7d) (2021-11-16) ncp-previewgenerator: update to NC22
3+
4+
[v1.44.0](https://github.com/nextcloud/nextcloudpi/commit/5ebef5e) (2021-11-16) upgrade to NC22.2.1
35

46
[v1.43.7](https://github.com/nextcloud/nextcloudpi/commit/6aba9b9) (2021-11-05) nc-restore: improve restoring data from SD to docker
57

ncp-previewgenerator/ncp-previewgenerator-nc21/appinfo/info.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ The first time you install this app, before using a cron job, you properly want
1313
</description>
1414
<licence>AGPL</licence>
1515
<author>Roeland Jago Douma</author>
16-
<version>3.1.1</version>
16+
<!-- set to a high version to avoid appstore upgrades -->
17+
<version>99.99.99</version>
1718
<namespace>PreviewGenerator</namespace>
1819
<category>multimedia</category>
1920
<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
2425
</types>
2526
<dependencies>
2627
<php min-version="7.2"/>
27-
<nextcloud min-version="20" max-version="21" />
28+
<nextcloud min-version="20" max-version="22" />
2829
</dependencies>
2930

3031
<commands>

updates/1.45.0.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
## BACKWARD FIXES ( for older images )
6+
7+
source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
8+
9+
# all images
10+
11+
# this update brings a version bump for ncp-previewgenerator
12+
ncc upgrade
13+
14+
# docker images only
15+
[[ -f /.docker-image ]] && {
16+
:
17+
}
18+
19+
# for non docker images
20+
[[ ! -f /.docker-image ]] && {
21+
22+
# make sure redis is up before running nextclud-domain
23+
cat > /usr/lib/systemd/system/nextcloud-domain.service <<'EOF'
24+
[Unit]
25+
Description=Register Current IP as Nextcloud trusted domain
26+
Requires=network.target
27+
After=mysql.service redis.service
28+
29+
[Service]
30+
ExecStart=/bin/bash /usr/local/bin/nextcloud-domain.sh
31+
Restart=on-failure
32+
RestartSec=5s
33+
34+
[Install]
35+
WantedBy=multi-user.target
36+
EOF
37+
}
38+
39+
exit 0

0 commit comments

Comments
 (0)