Skip to content

Commit caa5b6d

Browse files
Merge pull request #2110 from nextcloud/fix/ncp-preview-generator-template-formatting
Fix/ncp preview generator template formatting
2 parents 87465f7 + 464192a commit caa5b6d

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

etc/ncp-templates/cron.hourly/ncp-previewgenerator.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22

33
cat <<'EOF'
4+
#!/usr/bin/env bash
5+
set -eu
6+
47
GENERATE_JOB_ID="ncp-generate-previews"
58
69
if [[ "$(systemctl is-active "${GENERATE_JOB_ID}" ||:)" =~ ^(active|activating|deactivating)$ ]]
@@ -9,15 +12,13 @@ then
912
exit 0
1013
fi
1114
12-
#!/usr/bin/env bash
13-
set -eu
1415
source /usr/local/etc/library.sh
1516
1617
if is_app_enabled memories
1718
then
18-
ncc config:app:set --value="256 4096" previewgenerator coverWidthHeightSizes
19+
ncc config:app:set --value="256 4096" previewgenerator coverWidthHeightSizes > /dev/null
1920
else
20-
ncc config:app:set --value="" previewgenerator coverWidthHeightSizes
21+
ncc config:app:set --value="" previewgenerator coverWidthHeightSizes > /dev/null
2122
fi
2223
2324
for _ in $(seq 1 $(nproc)); do

updates/1.57.1.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
source /usr/local/etc/library.sh
5+
6+
echo "Reconfigure automatic preview generation (if enabled)"
7+
run_app nc-previews-auto

0 commit comments

Comments
 (0)