add shlink
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 12s

This commit is contained in:
j
2026-01-14 16:01:05 +13:00
parent 8a0d104dc2
commit dc4d42ed31
14 changed files with 377 additions and 0 deletions

15
shlink/status.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "CONTAINER_NAME"
# Check if both containers are running
shlink_running=$(_is_container_running "$CONTAINER_NAME" && echo "yes" || echo "no")
db_running=$(_is_container_running "${CONTAINER_NAME}_db" && echo "yes" || echo "no")
if [ "$shlink_running" = "yes" ] && [ "$db_running" = "yes" ]; then
echo "Running"
elif [ "$shlink_running" = "no" ] && [ "$db_running" = "no" ]; then
echo "Stopped"
else
echo "Error"
fi