First of all, I'm a newbie to Linux and scripts.
I have a problem with a sh script that runs when I start Raspbian.
The script needs to access the home folder.
If I start it from my session, no problem, everything works fine.
If I set it to start at boot, it doesn't work and I have it in logs
Apr 4 13:43:28 RPI-SEEDBOX openvpn: /etc/openvpn/waitfinal.sh: 19: /etc/openvpn/waitfinal.sh: cannot create /home/pi/.config/qBittorrent/test.conf: Directory nonexistent
After searching, I understood that the home folder will not be mounted if the session is not open.
Is there any way to access the home folder through the sh script during startup?
For your information, the script is run as part of the OpenVPN startup process
Openvpn is started as a service.
Thank you for your help and sorry if I don't explain it very well. I don't have all the technical words.