dperson / openvpn-client

GNU Affero General Public License v3.0
1.06k stars 587 forks source link

newest alpine (3.16.0) no longer has the sg command #404

Open ap-wtioit opened 2 years ago

ap-wtioit commented 2 years ago

the exec sg vpn -c at the end of openvpn.sh does not work with the current alpine:latest (3.16.0) image:

docker run --rm alpine:3.16.0 sh -c "apk add shadow && sg root -c id"

gives you: sh: sg: not found while it still does work with 3.15.4

docker run --rm alpine:3.15.4 sh -c "apk add shadow && sg root -c id"

uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)

ghost commented 2 years ago

Hi, Same problem.

Just modified the Dockerfile with FROM alpine:3.15.4 for the moment

NHellFire commented 2 years ago

405 fixes this