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

Update install.sh

This commit is contained in:
Tommy 2021-11-01 20:14:59 -04:00 committed by GitHub
parent eaedbe2975
commit 6919f6528f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -429,8 +429,8 @@ ExecStart=/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,stan
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
setsebool -P httpd_can_network_connect 1 setsebool -P httpd_can_network_connect 1
setsebool -P httpd_execmem 1 setsebool -P httpd_execmem 1
setsebool -P httpd_unified 1 setsebool -P httpd_unified 1
fi fi
sudo systemctl daemon-reload sudo systemctl daemon-reload
systemctl enable --now pteroq.service systemctl enable --now pteroq.service
@ -810,7 +810,7 @@ firewall(){
output "Setting up Fail2Ban..." output "Setting up Fail2Ban..."
if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then
apt -y install fail2ban apt -y install fail2ban
elif [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ]; then elif [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ]; then
yum -y install fail2ban yum -y install fail2ban
fi fi
systemctl enable fail2ban systemctl enable fail2ban