-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create mechanism to read files from host /
The supervisor needs to read some files from the host root since there are no alternative interfaces that the host provides. These files are - /etc/os-release to read the OS version - /run/openvpn/vpn_status/active to check the VPN status While we are working to introduce alternative interfaces for reading the information provided by these files, the supervisor still needs a backwards compatible way to get that info. This PR uses the fact that the supervisor has access to the docker socket to mount a file into a container and read the file from there. Change-type: minor
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters