-
Notifications
You must be signed in to change notification settings - Fork 1
Multi-user support #9
Description
There is a problem during installation of how to get the details of the intended user. Due to the script needing to be run as root, if the target user ID is not provided, it can be tricky to [programmatically] guess.
Instead, if multiple folder watches were setup; one for every Downloads directory for each /home/ sub-folder i.e. /home/*/Downloads, then any system user would be automatically supported.
A similar change to look for users' preferences should also be made, i.e. /home/*/.config/autovpn.properties.
Currently, the USER_HOME and PROPS_FILE environment variables for the main script are recorded in a properties file during installation here: /etc/systemd/system/autovpn.service.d/env.conf. If these aren't set, then the multi-user mode should be assumed.