mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 18:41:32 -05:00
Update install.sh
This commit is contained in:
parent
1089dca092
commit
60e26f9888
27
install.sh
27
install.sh
@ -469,7 +469,6 @@ upgrade_pterodactyl(){
|
|||||||
chown -R www-data:www-data * /var/www/pterodactyl
|
chown -R www-data:www-data * /var/www/pterodactyl
|
||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
||||||
chown -R nginx:nginx * /var/www/pterodactyl
|
chown -R nginx:nginx * /var/www/pterodactyl
|
||||||
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/pterodactyl/storage(/.*)?"
|
|
||||||
restorecon -R /var/www/pterodactyl
|
restorecon -R /var/www/pterodactyl
|
||||||
fi
|
fi
|
||||||
output "Your panel has successfully been updated to version ${PANEL}"
|
output "Your panel has successfully been updated to version ${PANEL}"
|
||||||
@ -686,30 +685,8 @@ install_wings() {
|
|||||||
cd /etc/pterodactyl || exit
|
cd /etc/pterodactyl || exit
|
||||||
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/${WINGS}/wings_linux_amd64
|
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/${WINGS}/wings_linux_amd64
|
||||||
chmod u+x /usr/local/bin/wings
|
chmod u+x /usr/local/bin/wings
|
||||||
if [ "$lsb_dist" != "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then
|
|
||||||
bash -c 'cat > /etc/systemd/system/wings.service' <<-'EOF'
|
|
||||||
[Unit]
|
|
||||||
Description=Pterodactyl Wings Daemon
|
|
||||||
After=podman.service
|
|
||||||
Requires=podman.service
|
|
||||||
PartOf=podman.service
|
|
||||||
|
|
||||||
[Service]
|
bash -c 'cat > /etc/systemd/system/wings.service' <<-'EOF'
|
||||||
User=root
|
|
||||||
WorkingDirectory=/etc/pterodactyl
|
|
||||||
LimitNOFILE=4096
|
|
||||||
PIDFile=/var/run/wings/daemon.pid
|
|
||||||
ExecStart=/usr/local/bin/wings
|
|
||||||
Restart=on-failure
|
|
||||||
StartLimitInterval=180
|
|
||||||
StartLimitBurst=30
|
|
||||||
RestartSec=5s
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
else
|
|
||||||
bash -c 'cat > /etc/systemd/system/wings.service' <<-'EOF'
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Pterodactyl Wings Daemon
|
Description=Pterodactyl Wings Daemon
|
||||||
After=docker.service
|
After=docker.service
|
||||||
@ -730,7 +707,7 @@ RestartSec=5s
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
systemctl enable wings
|
systemctl enable wings
|
||||||
output "Wings ${WINGS} has now been installed on your system."
|
output "Wings ${WINGS} has now been installed on your system."
|
||||||
output "You should go to your panel and configure the node now."
|
output "You should go to your panel and configure the node now."
|
||||||
|
Loading…
Reference in New Issue
Block a user