Browse Source

backups now require the git user

Signed-off-by: Amy Aronsohn <WagThatTail@Me.com>
main
Amelia A 2 years ago
parent
commit
f02c6d649e
Signed by: amy GPG Key ID: 70C320ABA95D38C1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backup

+ 1
- 1
backup View File

@ -3,7 +3,7 @@
export PATH="/usr/local/bin:/usr/bin:/bin"
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
BACKUP_COMMAND="/usr/local/bin/docker-compose run --rm --volume=$CURRENT_DIR/backups:/backups --workdir=/backups gitea gitea dump"
BACKUP_COMMAND="/usr/local/bin/docker-compose run --rm --user=git --volume=$CURRENT_DIR/backups:/backups --workdir=/backups gitea gitea dump"
# shellcheck disable=SC2086
(cd "$CURRENT_DIR" && exec $BACKUP_COMMAND)

Loading…
Cancel
Save