mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 02:21: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(){
|
||||
systemctl stop wings
|
||||
if [ ${WINGS} = "latest" ]; then
|
||||
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_amd64
|
||||
else
|
||||
curl -L -o /usr/local/bin/wings https://github.com/pterodactyl/wings/releases/download/${WINGS}/wings_linux_amd64
|
||||
fi
|
||||
chmod u+x /usr/local/bin/wings
|
||||
systemctl restart wings
|
||||
systemctl start wings
|
||||
output "Your wings have been updated to version ${WINGS}."
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user