Skip to content

Commit

Permalink
Fix typo in package manager condition for Rocky Linux in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Jan 1, 2025
1 parent 9df8760 commit 5fd61dc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
1 change: 0 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash

# Sleep for 2 seconds to ensure container is ready
sleep 2

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ display_menu() {
"${colors[GREEN]}│ │${colors[NC]}\n" \
"${colors[GREEN]}│ Pterodactyl VPS EGG │${colors[NC]}\n" \
"${colors[GREEN]}│ │${colors[NC]}\n" \
"${colors[GREEN]}${colors[RED]}© 2021 - 2024 ${colors[PURPLE]}ysdragon${colors[GREEN]} ${colors[NC]}\n" \
"${colors[GREEN]}${colors[RED]}© 2021 - $(date +%Y) ${colors[PURPLE]}@ysdragon${colors[GREEN]}${colors[NC]}\n" \
"${colors[GREEN]}│ │${colors[NC]}\n" \
"${colors[GREEN]}╰────────────────────────────────────────────────────────────────────────────────╯${colors[NC]}\n\n" \
"${colors[YELLOW]}Please choose your favorite distro:${colors[NC]}\n\n"
Expand Down
32 changes: 17 additions & 15 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,6 @@ get_formatted_dir() {
esac
}

# Function to print the banner
print_banner() {
printf "\033c"
printf "${GREEN}╭────────────────────────────────────────────────────────────────────────────────╮${NC}\n"
printf "${GREEN}│ │${NC}\n"
printf "${GREEN}│ Pterodactyl VPS EGG │${NC}\n"
printf "${GREEN}│ │${NC}\n"
printf "${GREEN}${RED}© 2021 - 2024 ${PURPLE}@ysdragon${GREEN}${NC}\n"
printf "${GREEN}│ │${NC}\n"
printf "${GREEN}╰────────────────────────────────────────────────────────────────────────────────╯${NC}\n"
printf " \n"
}

print_instructions() {
log "INFO" "Type 'help' to view a list of available custom commands." "$YELLOW"
}
Expand Down Expand Up @@ -132,7 +119,7 @@ install_wget() {
"void")
xbps-install -Syu -q wget > /dev/null 2>&1
;;
"centos"|"fedora"|"rockylinux"|"almalinux"|"openEuler"|"amzn"|"ol")
"centos"|"fedora"|"rocky"|"almalinux"|"openEuler"|"amzn"|"ol")
yum install -y -q wget > /dev/null 2>&1
;;
"opensuse"|"opensuse-tumbleweed"|"opensuse-leap")
Expand All @@ -159,6 +146,12 @@ install_wget() {

# Function to install SSH from the repository
install_ssh() {
# Check if SSH is already installed
if [ -f "/usr/local/bin/ssh" ]; then
log "ERROR" "SSH is already installed." "$RED"
return 1
fi

# Install wget if not found
if ! command -v wget &> /dev/null; then
log "INFO" "Installing wget." "$YELLOW"
Expand Down Expand Up @@ -278,7 +271,16 @@ touch "$HISTORY_FILE"
trap cleanup INT TERM

# Print initial banner
print_banner
print_banner() {
printf "\033c"
printf "${GREEN}╭────────────────────────────────────────────────────────────────────────────────╮${NC}\n"
printf "${GREEN}│ │${NC}\n"
printf "${GREEN}│ Pterodactyl VPS EGG │${NC}\n"
printf "${GREEN}│ │${NC}\n"
printf "${GREEN}${RED}© 2021 - $(date +%Y) ${PURPLE}@ysdragon${GREEN}${NC}\n"
printf "${GREEN}│ │${NC}\n"
printf "${GREEN}╰────────────────────────────────────────────────────────────────────────────────╯${NC}\n"
}

# Print the initial instructions
print_instructions
Expand Down

0 comments on commit 5fd61dc

Please sign in to comment.