Skip to content

Commit

Permalink
Remove Help Instructions text
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Nov 22, 2024
1 parent 77dadf0 commit 5f28980
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A powerful and lightweight Virtual Private Server (VPS) egg for Pterodactyl Pane
> [!IMPORTANT]
> For `riscv64` architecture, you must provide or host your own rootfs images. Currently, only Chimera Linux offers native support for riscv64 in this egg.
## 💻 Supported Operating Systems
## <img width="20" height="20" src="https://www.kernel.org/theme/images/logos/favicon.png" /> Available Linux Distributions

### Enterprise Linux
- <img width="16" height="16" src="https://rockylinux.org/favicon.png" /> Rocky Linux
Expand Down
9 changes: 2 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
#!/bin/bash

sleep 2
export HOME=/home/container
cd /home/container
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'))

# Make internal Docker IP address available to processes.
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
export INTERNAL_IP=$(ip route get 1 | awk '{print $NF;exit}')

# Copy run.sh to /home/container
cp /run.sh "$HOME/run.sh"

# Make run.sh executable.
chmod +x "$HOME/run.sh"

# Run the VPS Installer
bash /install.sh
23 changes: 22 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@ GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m'

# Check if not installed
if [ ! -e "/.installed" ]; then
# Add DNS Resolver nameservers to resolv.conf
printf "nameserver 1.1.1.1\nnameserver 1.0.0.1" > "/etc/resolv.conf"

# Check if rootfs.tar.xz or rootfs.tar.gz exists and remove them if they do
if [ -f "/rootfs.tar.xz" ]; then
rm -f "/rootfs.tar.xz"
fi

if [ -f "/rootfs.tar.gz" ]; then
rm -f "/rootfs.tar.gz"
fi

# Wipe the files we downloaded into /tmp previously
rm -rf /tmp/sbin

# Create .installed to later check whether OS is installed.
touch "/.installed"
fi


printf "\033c"
printf "${GREEN}Starting..${NC}\n"
sleep 1
Expand Down Expand Up @@ -50,7 +72,6 @@ print_banner() {
}

print_instructions() {
printf "${GREEN}=== Help Instructions ===${NC}\n"
printf "${YELLOW}Type 'help' to view a list of available custom commands.${NC}\n\n"
}

Expand Down

0 comments on commit 5f28980

Please sign in to comment.