mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-07 22:27:42 +08:00
Merge pull request #3642 from nextcloud/enh/noid/backup-additional-volumes
This commit is contained in:
commit
ebca5442ae
1 changed files with 4 additions and 4 deletions
|
@ -72,10 +72,10 @@ if [ "$BORG_MODE" = backup ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test that nothing is empty
|
# Test that default volumes are not empty
|
||||||
for directory in "${VOLUME_DIRS[@]}"; do
|
for volume in "${DEFAULT_VOLUMES[@]}"; do
|
||||||
if [ -z "$(ls -A "$directory")" ] && [ "$directory" != "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch" ]; then
|
if [ -z "$(ls -A "/nextcloud_aio_volumes/$volume")" ] && [ "$volume" != "nextcloud_aio_elasticsearch" ]; then
|
||||||
echo "$directory is empty which is not allowed."
|
echo "/nextcloud_aio_volumes/$volume is empty which should not happen!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue