Skip to content

Commit

Permalink
add call python3 ./url_validate_and_trim.py when started once
Browse files Browse the repository at this point in the history
  • Loading branch information
masloffvs committed May 23, 2024
1 parent b161e20 commit 1af4bcf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ if [ "$(docker ps -q -f name=$CONTAINER_NAME)" ]; then
docker rm $CONTAINER_NAME
fi

# Create the Docker network
echo "Creating network 'datahub'..."
docker network create --driver bridge datahub || true
# Check if the 'datahub' network exists
if [ ! "$(docker network ls | grep datahub)" ]; then
echo "Creating 'datahub' network ..."
docker network create datahub
else
echo "'datahub' network exists."
fi

# Run the Docker container with volume mounting
echo "Starting container '$CONTAINER_NAME'..."
Expand Down
1 change: 1 addition & 0 deletions watch_routes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ generate_config() {
}

echo "Dynamic routing script started..."
python3 ./url_validate_and_trim.py

# Generate initial configuration
generate_config
Expand Down

0 comments on commit 1af4bcf

Please sign in to comment.