Revert "Allow backup to be run as non-root user (#366)" (#370)

This reverts commit f64aaa6e24.
This commit is contained in:
Frederik Ring
2024-02-21 18:43:13 +01:00
committed by GitHub
parent 02ba9939a2
commit 4b3ca2ebb0
11 changed files with 6 additions and 131 deletions

View File

@@ -1,27 +0,0 @@
#!/bin/sh
set -e
cd "$(dirname "$0")"
. ../util.sh
current_test=$(basename $(pwd))
export LOCAL_DIR=$(mktemp -d)
docker compose up -d --quiet-pull
sleep 5
docker compose logs backup
# conf.d is used to confirm /etc files are also accessible for non-root users
docker compose exec backup /bin/sh -c 'set -a; source /etc/dockervolumebackup/conf.d/01conf.env; set +a && backup'
sleep 5
expect_running_containers "3"
if [ ! -f "$LOCAL_DIR/backup/test.tar.gz" ]; then
fail "Could not find archive."
fi
pass "Archive was created."