Skip to content

Commit

Permalink
feat: Add support for getting latest server via wget with timestamping
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Jul 30, 2024
1 parent 240ba6f commit 123bcd4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/dev/download_server
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -e

if [ "$CUSTOM_SERVER_URL" ]; then
if [ ! "$CUSTOM_SERVER" ]; then
export CUSTOM_SERVER=server.jar
fi
echo "Checking for server updates from $CUSTOM_SERVER_URL"
wget -N -q --show-progress "$CUSTOM_SERVER_URL" -c --output-document="$CUSTOM_SERVER"
fi
1 change: 1 addition & 0 deletions scripts/dev/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e

. /scripts/dev/ansible
. /scripts/dev/keepup
. /scripts/dev/download_server

if [ "$UPDATE_DATA_OWNER" = "true" ]; then
echo "Updating owner for /data to $UID:$GID"
Expand Down

0 comments on commit 123bcd4

Please sign in to comment.