1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-09-16 14:14:42 -04:00

Update install.sh

This commit is contained in:
Tommy 2021-11-02 01:24:53 -04:00 committed by GitHub
parent bacfe76e61
commit c7f636ba10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -731,8 +731,15 @@ RestartSec=5s
WantedBy=multi-user.target
EOF
fi
systemctl enable --now wings
systemctl enable wings
output "Wings ${WINGS} has now been installed on your system."
output "You should go to your panel and configure the node now."
if [ "$lsb_dist" != "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
output "------------------------------------------------------------------"
output "IMPORTANT NOTICE!!!"
output "Since you are on a system with targetted SELinux policies, you should be changing the Daemon Server File Directory from /var/lib/pterodactyl/volumes to /var/srv/containers/pterodactyl."
output "------------------------------------------------------------------"
fi
}
@ -895,7 +902,7 @@ broadcast(){
if [ "$installoption" = "1" ] || [ "$installoption" = "3" ]; then
broadcast_database
fi
output "###############################################################"
output "------------------------------------------------------------------"
output "FIREWALL INFORMATION"
output ""
output "All unnecessary ports are blocked by default."
@ -904,12 +911,12 @@ broadcast(){
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
output "Use 'firewall-cmd --permanent --add-port=<port>/tcp' to enable your desired ports."
fi
output "###############################################################"
output "------------------------------------------------------------------"
output ""
}
broadcast_database(){
output "###############################################################"
output "------------------------------------------------------------------"
output "MARIADB/MySQL INFORMATION"
output ""
output "Your MariaDB/MySQL root password is $rootpassword"
@ -919,7 +926,7 @@ broadcast_database(){
output "Port: 3306"
output "User: admin"
output "Password: $adminpassword"
output "###############################################################"
output "------------------------------------------------------------------"
output ""
}