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:
parent
34a2c22561
commit
bb5078e348
@ -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}."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user