You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
URL=$(curl -s https://api.github.com/repos/warp-tech/warpgate/releases/latest | jq -r '.assets[] | select(.name|match(".*x86_64-linux$")) | .browser_download_url' | xargs)
systemctl stop warpgate.service
wget -q $URL -O /usr/bin/warpgate
chmod +x /usr/bin/warpgate
systemctl start warpgate.service
Run with: sudo bash ./update-warpgate.sh
From a warpgate connection run with: nohup sudo bash ./update-warpgate.sh >/dev/null 2>&1 & Warning: you will be disconnected!
You should only be using this if you have other methods access the server warpgate is running on, otherwise you might lock yourself out!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wrote a script to update warpgate to the latest release on x86_64 Linux, perhaps this is useful for anybody else:
Prerequisites:
jq
Run with:
sudo bash ./update-warpgate.sh
From a warpgate connection run with:
nohup sudo bash ./update-warpgate.sh >/dev/null 2>&1 &
Warning: you will be disconnected!
You should only be using this if you have other methods access the server warpgate is running on, otherwise you might lock yourself out!
Beta Was this translation helpful? Give feedback.
All reactions