Move a bunch of files around, try to get things working

This commit is contained in:
Dane Everitt
2021-05-15 12:26:45 -07:00
parent 72443f7789
commit ee444da25a
44 changed files with 327 additions and 497 deletions

View File

@@ -24,7 +24,7 @@ FROM --platform=$BUILDPLATFORM alpine:latest
LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
LABEL org.opencontainers.image.source="https://github.com/matthewpi/images"
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
LABEL org.opencontainers.image.licenses=MIT
RUN apk add --update --no-cache ca-certificates tzdata \

View File

@@ -26,16 +26,18 @@
TZ=${TZ:-UTC}
export TZ
# Switch to the container's working directory
cd /home/container
# Set environment variable that holds the Internal Docker IP
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
INTERNAL_IP=$(ip route get 1 | awk '{print $NF;exit}')
export INTERNAL_IP
# Switch to the container's working directory
cd /home/container || exit 1
# Replace variables in the startup command
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
MODIFIED_STARTUP=$(eval echo "$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g')")
printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m'
echo "${MODIFIED_STARTUP}"
# Run the startup command
exec env ${MODIFIED_STARTUP}
exec env "${MODIFIED_STARTUP}"