From 77188d25c92541c99c869ec677478f6a0e45e5a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 8 Oct 2025 23:46:38 +0200 Subject: [PATCH] Fix sysctl for trixie (#8209) --- install/wireguard-install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index 11e9a44fe..174f5340d 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -31,8 +31,14 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then cd /etc/wgdashboard/src || exit chmod u+x wgd.sh $STD ./wgd.sh install - echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf - $STD sysctl -p /etc/sysctl.conf + . /etc/os-release + if [ "$VERSION_CODENAME" = "trixie" ]; then + echo "net.ipv4.ip_forward=1" >>/etc/sysctl.d/sysctl.conf + $STD sysctl -p /etc/sysctl.d/sysctl.conf + else + echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf + $STD sysctl -p /etc/sysctl.conf + fi msg_ok "Installed WGDashboard" msg_info "Create Example Config for WGDashboard"