Fix sysctl for trixie (#8209)

This commit is contained in:
Slaviša Arežina 2025-10-08 23:46:38 +02:00 committed by GitHub
parent de47dfe287
commit 77188d25c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,8 +31,14 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
cd /etc/wgdashboard/src || exit cd /etc/wgdashboard/src || exit
chmod u+x wgd.sh chmod u+x wgd.sh
$STD ./wgd.sh install $STD ./wgd.sh install
echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf . /etc/os-release
$STD sysctl -p /etc/sysctl.conf 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_ok "Installed WGDashboard"
msg_info "Create Example Config for WGDashboard" msg_info "Create Example Config for WGDashboard"