Affine final version
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user