mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-02-28 13:13:00 +00:00
16 lines
No EOL
403 B
Bash
16 lines
No EOL
403 B
Bash
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
echo "[$(date)] Starting geodata update..."
|
|
|
|
/app/geo.sh update_all_geofiles "${SHARED_VOLUME_PATH}"
|
|
|
|
echo "[$(date)] Geodata update finished, restarting container..."
|
|
|
|
HTTP_CODE=$(
|
|
curl -s -X POST \
|
|
"${DOCKER_PROXY_URL}/containers/${TARGET_CONTAINER_NAME}/restart" \
|
|
-o /dev/null -w "%{http_code}"
|
|
)
|
|
|
|
echo "[$(date)] Restart request sent, HTTP status: ${HTTP_CODE}" |