From 1ffbf87dc6f8c4f821f89ed52e1049379e4bf3ef Mon Sep 17 00:00:00 2001 From: robiiinos Date: Sat, 18 Jul 2020 21:32:09 +0200 Subject: [PATCH 1/3] Add Dependabot --- .github/dependabot.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f4d737f --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + assignees: + - "angristan" + reviewers: + - "angristan" From 13df50739369be654d08564b70891e54e76e1ebf Mon Sep 17 00:00:00 2001 From: robiiinos Date: Sat, 18 Jul 2020 21:31:03 +0200 Subject: [PATCH 2/3] Update GitHub Actions --- .github/workflows/lint.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 43ee65c..e3c5e63 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,19 +7,21 @@ on: - master name: Lint + jobs: shellcheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: shellcheck - uses: ludeeus/action-shellcheck@0.0.1 + uses: ludeeus/action-shellcheck@0.4.1 env: SHELLCHECK_OPTS: -e SC1091,SC1117,SC2001 + shfmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - uses: actions/checkout@v2 - name: shfmt uses: bltavares/actions/shfmt@master env: From 6e518633f340b8281f032ed47d07f61b4d91fe59 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Wed, 29 Jul 2020 12:20:51 +0200 Subject: [PATCH 3/3] Fix Debian installation: use backports And limit to Debian 10. Fix #101 --- wireguard-install.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 40c08ce..93c755d 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -98,6 +98,14 @@ fi if [[ -e /etc/debian_version ]]; then source /etc/os-release OS=$ID # debian or ubuntu + if [[ -e /etc/debian_version ]]; then + if [[ $ID == "debian" || $ID == "raspbian" ]]; then + if [[ $VERSION_ID -ne 10 ]]; then + echo "Your version of Debian ($VERSION_ID) is not supported. Please use Debian 10 Buster" + exit 1 + fi + fi + fi elif [[ -e /etc/fedora-release ]]; then source /etc/os-release OS=$ID @@ -139,12 +147,13 @@ if [[ $OS == 'ubuntu' ]]; then apt-get install -y "linux-headers-$(uname -r)" apt-get install -y wireguard iptables resolvconf qrencode elif [[ $OS == 'debian' ]]; then - echo "deb http://deb.debian.org/debian/ unstable main" >/etc/apt/sources.list.d/unstable.list - printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' >/etc/apt/preferences.d/limit-unstable + if ! grep -rqs "^deb .* buster-backports" /etc/apt/; then + echo "deb http://deb.debian.org/debian buster-backports main" >/etc/apt/sources.list.d/backports.list + apt-get update + fi apt update - apt-get install -y "linux-headers-$(uname -r)" - apt-get install -y wireguard iptables resolvconf qrencode - apt-get install -y bc # mitigate https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956869 + apt-get install -y iptables resolvconf qrencode + apt-get install -y -t buster-backports wireguard elif [[ $OS == 'fedora' ]]; then if [[ $VERSION_ID -lt 32 ]]; then dnf install -y dnf-plugins-core