mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix the restore UX flow and some other small improvements
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
33c822fd1e
commit
3eede90e86
2 changed files with 40 additions and 36 deletions
|
|
@ -32,7 +32,7 @@ if ! mountpoint -q /mnt/borgbackup; then
|
|||
fi
|
||||
|
||||
# Check if target is empty
|
||||
if [ "$BORG_MODE" != backup ] && ! [ -f "$BORG_BACKUP_DIRECTORY/config" ]; then
|
||||
if [ "$BORG_MODE" != backup ] && [ "$BORG_MODE" != test ] && ! [ -f "$BORG_BACKUP_DIRECTORY/config" ]; then
|
||||
echo "The repository is empty. cannot perform check or restore."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue