Skip to content

Commit

Permalink
replace group in server.conf by primary group of user nobody
Browse files Browse the repository at this point in the history
  • Loading branch information
hxpro committed Oct 30, 2016
1 parent ffaa23f commit af9a91b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ cp "$base_path/installation/server.conf" "/etc/openvpn/"
mkdir "/etc/openvpn/ccd"
sed -i "s/port 443/port $server_port/" "/etc/openvpn/server.conf"

nobody_group=$(id -ng nobody)
sed -i "s/group nogroup/group $nobody_group/" "/etc/openvpn/server.conf"

printf "\n################## Setup firewall ##################\n"

Expand Down

0 comments on commit af9a91b

Please sign in to comment.