mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 05:56:51 +00:00
Merge pull request #7080 from nextcloud/enh/noid/remove-delete-logic
borg-init: remove unnecessary delete logic
This commit is contained in:
commit
6f9adffd41
1 changed files with 0 additions and 5 deletions
|
|
@ -138,11 +138,6 @@ if [ "$BORG_MODE" = backup ]; then
|
|||
NEW_REPOSITORY=1
|
||||
if ! borg init --debug --encryption=repokey-blake2; then
|
||||
echo "Could not initialize borg repository."
|
||||
if [ -z "$BORG_REMOTE_REPO" ]; then
|
||||
# Originally we checked for presence of the config file instead of calling `borg info`. Likely `borg info`
|
||||
# will error on a partially initialized repo, so this line is probably no longer necessary
|
||||
rm -f "$BORG_BACKUP_DIRECTORY/config"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue