mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-02 06:29:01 +00:00
Revert timezone changes, switch user back to container
This commit is contained in:
1 parent
0859211185
commit
c9fd17ef42
18 files changed
+36
-90
No files matched your search
@@ -11,15 +11,7 @@
|
||||
TZ=${TZ:-UTC}
|
||||
export TZ
|
||||
|
||||
# Set the timezone in the container
|
||||
echo $TZ > /etc/timezone
|
||||
ln -s ../usr/share/zoneinfo/$TZ /etc/localtime
|
||||
|
||||
# Switch to the container's working directory
|
||||
USER=container
|
||||
HOME=/home/container
|
||||
export USER
|
||||
export HOME
|
||||
cd /home/container
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
@@ -33,4 +25,4 @@ MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'
|
||||
echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the startup command
|
||||
su -c "eval ${MODIFIED_STARTUP}" container
|
||||
eval ${MODIFIED_STARTUP}
|
||||
Reference in new issue
Block a user