Skip to content

Commit 4466d55

Browse files
authored
Merge pull request #5 from SloCompTech/develop
Fix service start
2 parents 870815d + dc0e785 commit 4466d55

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 2.0.1 - Fix service start
4+
5+
- Fixed command for starting service
6+
37
### 2.0.0 - Partial rewrite
48

59
- Moved `/config/hooks` to `/config/openvpn/hooks`

root/etc/services.d/openvpn/run

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIGS=$(ls -1 /config/openvpn/config | wc -l) # Get number of files
1616
if [ $CONFIGS -gt 0 ]; then
1717
# Run OpenVPN only if configs are present
1818
echo "Running OpenVPN ..."
19-
sudo -E -u abc openvpn --config /config/openvpn/system.conf
19+
exec s6-setuidgid $CONTAINER_USER openvpn --config /config/openvpn/system.conf
2020
else
2121
# No OpenVPN config present
2222
echo "No OpenVPN config present"

0 commit comments

Comments
 (0)