Solved bugs

This commit is contained in:
Kevin Veen-Birkenbach 2021-11-11 13:17:02 +01:00
parent 568888952f
commit d49b212290

View File

@ -4,7 +4,10 @@
volume_name="$1" volume_name="$1"
backup_hash="$2" backup_hash="$2"
backup_path="/Backups/$backup_hash/docker-volume-backup/latest/$volume_name" backup_path="/Backups/$backup_hash/docker-volume-backup/latest/$volume_name"
if docker volume inspect; then echo "Inspect volume $volume_name"
docker volume inspect "$volume_name"
exit_status_volume_inspect=$?
if [ $exit_status_volume_inspect -eq 0 ]; then
echo "Volume $volume_name allready exists" echo "Volume $volume_name allready exists"
else else
echo "Create volume $volume_name" echo "Create volume $volume_name"