-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
39 lines (32 loc) · 1.46 KB
/
Copy pathdocker-entrypoint.sh
File metadata and controls
39 lines (32 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Docker entrypoint for RustRconServerManager
# Checks for updates before starting the application
set -e
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "RustRconServerManager Container Starting"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Run update check
if [ -f /app/check-update.sh ]; then
echo "Running update check..."
bash /app/check-update.sh || true
echo ""
fi
# Check if version file exists, if not create it from current build
if [ ! -f /app/.version ] && [ -f /app/.build_version ]; then
cp /app/.build_version /app/.version
fi
# Display current version
if [ -f /app/.version ]; then
VERSION=$(cat /app/.version)
echo "Running version: ${VERSION}"
else
echo "Running version: unknown"
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Starting RustRconServerManager Application"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Execute the application
exec /app/RustRconServerManager.Backend "$@"