subspacecommunity / subspace

A fork of the simple WireGuard VPN server GUI community maintained
MIT License
1.8k stars 131 forks source link

source envvars before service run #99

Closed jack1902 closed 4 years ago

jack1902 commented 4 years ago

to: cc: @subspacecommunity/subspace-maintainers related to: resolves: #90 #97

Background

Bug reports were raised and this is how i can fix it. There MIGHT be a better solution than this in terms of using KEY=VALUE as part of the below. But i personally feely like this approach is better as ALL environment variables are only relevant to subspace https://github.com/subspacecommunity/subspace/blob/15ff6dbc430d3f28f61b44d237604783a5f4865d/bin/my_init#L30

Changes

Testing