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>
This commit is contained in:
Tobias Knöppler 2023-01-08 18:23:29 +01:00
parent 9fdd7822cd
commit 13129b694e
No known key found for this signature in database
GPG Key ID: 3510056072886A8F
2 changed files with 12 additions and 0 deletions

View File

@ -26,6 +26,9 @@ configure()
cat > /etc/cron.hourly/btrfs-snp <<EOF
#!/bin/bash
source /usr/local/etc/library.sh
DATADIR=\$(get_nc_config_value datadirectory) || {
echo -e "Error reading data directory. Is NextCloud running and configured?";
exit 1;

9
updates/1.50.5.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
export NCPCFG=/usr/local/etc/ncp.cfg
source /usr/local/etc/library.sh
# Reinstall auto snapshot script to apply fix
[[ -f "$BINDIR/BACKUPS/nc-snapshot-auto.sh" ]] || exit 0
run_app nc-snapshot-auto