SkyrimTogether/latest/entrypoint.sh

13 lines
No EOL
282 B
Bash

#!/bin/bash
cd /home/container
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace startup vars
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}
eval ${MODIFIED_STARTUP}