summaryrefslogtreecommitdiff
path: root/functions/reboot_vps.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-06-30 20:14:17 +0000
committerdoc <doc@filenotfound.org>2025-06-30 20:14:17 +0000
commita8cd1c324c0541b0d26542168aeced085ec13201 (patch)
treea99d398008b46aa4df5dcae997e1690298d2fc70 /functions/reboot_vps.sh
initial failzero commitHEADmaster
Diffstat (limited to 'functions/reboot_vps.sh')
-rwxr-xr-xfunctions/reboot_vps.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/reboot_vps.sh b/functions/reboot_vps.sh
new file mode 100755
index 0000000..2741b9c
--- /dev/null
+++ b/functions/reboot_vps.sh
@@ -0,0 +1,7 @@
+reboot_vps() {
+ LINODE_ID="$1"
+ echo "Rebooting Linode VPS ID $LINODE_ID..."
+
+ curl -s -X POST https://api.linode.com/v4/linode/instances/$LINODE_ID/reboot \
+ -H "Authorization: Bearer $LINODE_API_TOKEN" | jq
+}