1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-08 04:41:33 -05:00

Fix upgrade_wings

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-12-14 01:55:50 -05:00
parent 34a2c22561
commit bb5078e348
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -457,13 +457,14 @@ EOF
upgrade_wings(){ upgrade_wings(){
systemctl stop wings
if [ ${WINGS} = "latest" ]; then if [ ${WINGS} = "latest" ]; then
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_amd64 curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_amd64
else else
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
fi fi
chmod u+x /usr/local/bin/wings chmod u+x /usr/local/bin/wings
systemctl restart wings systemctl start wings
output "Your wings have been updated to version ${WINGS}." output "Your wings have been updated to version ${WINGS}."
} }