From bcf5877b4f8b009de10abc759930db0d63c4ce4b Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sun, 6 Dec 2020 16:45:25 -0700 Subject: [PATCH] Change prompt in entrypoint.sh --- alpine/entrypoint.sh | 3 ++- java10/entrypoint.sh | 3 ++- java11/entrypoint.sh | 3 ++- java12/entrypoint.sh | 3 ++- java13/entrypoint.sh | 3 ++- java14/entrypoint.sh | 3 ++- java15/entrypoint.sh | 3 ++- java7/entrypoint.sh | 3 ++- java8/entrypoint.sh | 3 ++- java9/entrypoint.sh | 3 ++- source/entrypoint.sh | 3 ++- 11 files changed, 22 insertions(+), 11 deletions(-) diff --git a/alpine/entrypoint.sh b/alpine/entrypoint.sh index cd71e59..fbaae40 100644 --- a/alpine/entrypoint.sh +++ b/alpine/entrypoint.sh @@ -19,7 +19,8 @@ export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java10/entrypoint.sh b/java10/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java10/entrypoint.sh +++ b/java10/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java11/entrypoint.sh b/java11/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java11/entrypoint.sh +++ b/java11/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java12/entrypoint.sh b/java12/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java12/entrypoint.sh +++ b/java12/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java13/entrypoint.sh b/java13/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java13/entrypoint.sh +++ b/java13/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java14/entrypoint.sh b/java14/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java14/entrypoint.sh +++ b/java14/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java15/entrypoint.sh b/java15/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java15/entrypoint.sh +++ b/java15/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java7/entrypoint.sh b/java7/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java7/entrypoint.sh +++ b/java7/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java8/entrypoint.sh b/java8/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java8/entrypoint.sh +++ b/java8/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/java9/entrypoint.sh b/java9/entrypoint.sh index 1f5f5f7..77e6ad1 100644 --- a/java9/entrypoint.sh +++ b/java9/entrypoint.sh @@ -22,7 +22,8 @@ java -version # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP} diff --git a/source/entrypoint.sh b/source/entrypoint.sh index cd71e59..fbaae40 100644 --- a/source/entrypoint.sh +++ b/source/entrypoint.sh @@ -19,7 +19,8 @@ export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` # Replace variables in the startup command MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` -echo "[container@pterodactyl ~]$ ${MODIFIED_STARTUP}" +printf '\033[1m\033[33mcontainer@pterodactyl~ \033[0m' +echo "${MODIFIED_STARTUP}" # Run the startup command eval ${MODIFIED_STARTUP}