Skip to content

Commit

Permalink
Create ddns.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHe authored Mar 4, 2022
0 parents commit 52afb61
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ddns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
mkdir ./ddns
cd ./ddns
uname -m | grep -qi aarch64 && oarch=linux_arm64 || oarch=linux_x86_64;
wget "$(curl -s https://api.github.com/repos/jeessy2/ddns-go/releases/latest|grep -i "browser_download_url.*${oarch}"|awk -F '"' '{print $(NF-1)}')";
tar -xzvf ./ddns*.tar.gz
chmod +x ./ddns-go
mv ./ddns-go /usr/bin
cd ..
rm -rf ./ddns
ddns-go -s install

0 comments on commit 52afb61

Please sign in to comment.