From 6d42aac7b931c4204a8a4c045ca6e04d54ef94da Mon Sep 17 00:00:00 2001 From: kekskurse Date: Mon, 29 Nov 2021 06:50:09 +0100 Subject: [PATCH] Install script --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..803ec28 --- /dev/null +++ b/install.sh @@ -0,0 +1,4 @@ +URL=`python -c 'import urllib.request;import json;f = urllib.request.urlopen("https://git.keks.cloud/api/v1/repos/kekskurse/http-server-status/releases?limit=1");d = json.loads(f.read().decode("utf-8")); +for asset in d[0]["assets"]: x = asset["browser_download_url"] if asset["name"][-4:] == ".deb" else ""; print(x, end="");'` +wget -O hss.deb $URL +dpkg -i hss.deb \ No newline at end of file