Skip to content

Commit

Permalink
Panel migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Kas-tle authored Sep 3, 2023
1 parent bc1d1d5 commit 2c4697f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ jobs:
run: |
cp staging/ParadisuPlugin.jar ParadisuPlugin.jar
upload_plugin () {
local upload_url=$(curl "https://panel.paradisu.net/api/client/servers/${1}/files/upload" -H "Authorization: Bearer ${PTERODACTYL_TOKEN}" -X GET -s | jq -r .attributes.url)
local upload_url=$(curl "https://panel.kastle.dev/api/client/servers/${1}/files/upload" -H "Authorization: Bearer ${PTERODACTYL_TOKEN}" -X GET -s | jq -r .attributes.url)
curl -F [email protected] "${upload_url}&directory=/plugins"
}
restart_server () {
task_id=$(curl "https://panel.paradisu.net/api/client/servers/${1}/schedules" -H 'Accept: application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer ${PTERODACTYL_TOKEN}" -X GET | jq '.data[]?.attributes? | select(.name == "Maintenance Restart") | .id')
curl "https://panel.paradisu.net/api/client/servers/${1}/schedules/${task_id}/execute" -H 'Accept: application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer ${PTERODACTYL_TOKEN}" -X POST
task_id=$(curl "https://panel.kastle.dev/api/client/servers/${1}/schedules" -H 'Accept: application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer ${PTERODACTYL_TOKEN}" -X GET | jq '.data[]?.attributes? | select(.name == "Maintenance Restart") | .id')
curl "https://panel.kastle.dev/api/client/servers/${1}/schedules/${task_id}/execute" -H 'Accept: application/json' -H 'Content-Type: application/json' -H "Authorization: Bearer ${PTERODACTYL_TOKEN}" -X POST
}
server_ids=(
"978fd706"
Expand Down

0 comments on commit 2c4697f

Please sign in to comment.