mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Fix sysctl for trixie (#8209)
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user