All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m11s
13 lines
239 B
Bash
13 lines
239 B
Bash
#!/bin/sh
|
|
|
|
# Run the application in the background
|
|
python generate_config.py && python pterodisbot.py &
|
|
|
|
# Capture the process ID
|
|
PID=$!
|
|
|
|
# Wait for SIGTERM signal
|
|
trap "kill -INT $PID" SIGTERM
|
|
|
|
# Wait for the process to complete
|
|
wait $PID |