Skip to content

Commit

Permalink
Fix typo in nc-previews-auto.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Breitbach <[email protected]>
  • Loading branch information
m-breitbach authored and theCalcaholic committed Nov 8, 2024
1 parent 1f7855b commit c10bf36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ncp/CONFIG/nc-previews-auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ configure()
grep -qP "^\d+$" <<<"$RUNTIME" || { echo "Invalid RUNTIME value $RUNTIME"; return 1; }
RUNTIME=$((RUNTIME*60))

echo "0 2 * * * root /usr/local/bin/nc-previews" > /etc/cron.d/ncp-previews-auto
chmod 644 /etc/cron.d/ncp-previews-auto
echo "0 2 * * * root /usr/local/bin/nc-previews" > /etc/cron.d/nc-previews-auto
chmod 644 /etc/cron.d/nc-previews-auto

cat > /usr/local/bin/nc-previews <<EOF
#!/bin/bash
Expand Down
2 changes: 2 additions & 0 deletions updates/1.55.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

apt-get update
apt-get install -y --no-install-recommends logrotate

[ -f /etc/cron.d/ncp-previews-auto ] && mv /etc/cron.d/ncp-previews-auto /etc/cron.d/nc-previews-auto

0 comments on commit c10bf36

Please sign in to comment.