Skip to content

Commit 98f1a83

Browse files
committed
nc-snapshot-auto.sh: Add missing import of library.sh in /etc/cron.hourly/btrfs-snp (#1689)
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
1 parent c3b4c3a commit 98f1a83

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

bin/ncp/BACKUPS/nc-snapshot-auto.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ configure()
2626

2727
cat > /etc/cron.hourly/btrfs-snp <<EOF
2828
#!/bin/bash
29+
30+
source /usr/local/etc/library.sh
31+
2932
DATADIR=\$(get_nc_config_value datadirectory) || {
3033
echo -e "Error reading data directory. Is NextCloud running and configured?";
3134
exit 1;

updates/1.50.5.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
export NCPCFG=/usr/local/etc/ncp.cfg
5+
source /usr/local/etc/library.sh
6+
7+
# Reinstall auto snapshot script to apply fix
8+
[[ -f "$BINDIR/BACKUPS/nc-snapshot-auto.sh" ]] || exit 0
9+
run_app nc-snapshot-auto

0 commit comments

Comments
 (0)