mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 06:32:00 -03:30
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:
parent
9fdd7822cd
commit
13129b694e
@ -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
9
updates/1.50.5.sh
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user