Affine final version

This commit is contained in:
2025-05-04 21:06:49 +02:00
parent 43705e2799
commit 452fe2a27c
4 changed files with 17 additions and 8 deletions

View File

@@ -23,16 +23,19 @@ containers=(
)
for container in "${containers[@]}"; do
if podman container exists "$containers"; then
echo "Stop and delete existing container $containers"
if podman inspect -f '{{.State.Running}}' "$containers" | grep -q true; then
podman stop "$containers"
if podman container exists "$container"; then
echo "Stop and delete existing container $container"
if podman inspect -f '{{.State.Running}}' "$container" | grep -q true; then
podman stop "$container"
fi
podman rm "$containers"
podman rm "$container"
fi
done
mkdir -p ./systemd-units
mkdir -p $DB_DATA_LOCATION
mkdir -p $UPLOAD_LOCATION
mkdir -p $CONFIG_LOCATION
podman create \
--name $CONTAINER_REDIS \
--network $NETWORK \