From 81987c69a8141ad60a33fc7999aaedc4e5152cb8 Mon Sep 17 00:00:00 2001 From: darkclip Date: Sat, 17 Feb 2024 09:25:59 +0800 Subject: [PATCH] update --- add-crowdsec.sh | 3 +++ add-speedtest.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/add-crowdsec.sh b/add-crowdsec.sh index cae0eed..59ab121 100755 --- a/add-crowdsec.sh +++ b/add-crowdsec.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash set -e +OS_ARCH=$(dpkg --print-architecture) || (echo "Not Debian Based Distro" && exit 1) +OS_CODE=$(source /etc/os-release && echo "$VERSION_CODENAME") + main(){ echo "deb https://packagecloud.io/crowdsec/crowdsec/debian/ $OS_CODE main" | \ tee /etc/apt/sources.list.d/crowdsec_crowdsec.list diff --git a/add-speedtest.sh b/add-speedtest.sh index a94a179..e504800 100755 --- a/add-speedtest.sh +++ b/add-speedtest.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash set -e +OS_ARCH=$(dpkg --print-architecture) || (echo "Not Debian Based Distro" && exit 1) +OS_CODE=$(source /etc/os-release && echo "$VERSION_CODENAME") + main(){ echo "deb https://packagecloud.io/ookla/speedtest-cli/debian/ $OS_CODE main" | \ tee /etc/apt/sources.list.d/ookla_speedtest-cli.list