From e4dd82613e4d5eef56d66f4ba7dc3366a368a4d9 Mon Sep 17 00:00:00 2001 From: KarolAdameczek Date: Thu, 5 Mar 2026 19:01:42 +0100 Subject: [PATCH 1/2] Updated chce_wireguard.sh to use legacy server name convention with mikrus generator endpoint --- scripts/chce_wireguard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/chce_wireguard.sh b/scripts/chce_wireguard.sh index 276da82..d43148d 100755 --- a/scripts/chce_wireguard.sh +++ b/scripts/chce_wireguard.sh @@ -97,7 +97,7 @@ wg pubkey < /etc/wireguard/privatekey > /etc/wireguard/publickey wg pubkey < /etc/wireguard/client-privatekey > /etc/wireguard/client-publickey # Generate server configuration using a generator script -srv=$(hostname) +srv=$(hostname | sed -E 's/^([a-z])[a-z]+([0-9]+)$/\1\2/') privkey=$(cat /etc/wireguard/privatekey) pubkey=$(cat /etc/wireguard/publickey) cliprivkey=$(cat /etc/wireguard/client-privatekey) From 079b5938404e1af3884133d1587d8963066752bb Mon Sep 17 00:00:00 2001 From: KarolAdameczek Date: Thu, 5 Mar 2026 19:03:22 +0100 Subject: [PATCH 2/2] Added contributor name at the top --- scripts/chce_wireguard.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/chce_wireguard.sh b/scripts/chce_wireguard.sh index d43148d..36197f9 100755 --- a/scripts/chce_wireguard.sh +++ b/scripts/chce_wireguard.sh @@ -3,6 +3,7 @@ # Współautor: Jakub 'unknow' Mrugalski # Aktualizacja: Dawid Kasza # Aktualizacja2: Michał Skórcz +# Aktualizacja3: Karol Adameczek set -e # Sprawdz uprawnienia przed wykonaniem skryptu instalacyjnego