Closed mbryde closed 3 years ago
NOTE: This has not been tested directly yet.
I have merged it into my fork, will test it the coming days ;-).
Three minor issues, see: https://github.com/gerwim/nordvpn-proxy/commit/5c83b41c8a01c32eec8f2f9d5e78a731865a6a23
@MBryde nice contribution 👍 did you have a reason for the 2 hours?
@MBryde nice contribution 👍 did you have a reason for the 2 hours?
No not really. Could be less or more. Or even a variable you could set but default too something. It more or less up too you as the owner of the repo.
Three minor issues, see: gerwim@5c83b41
I have changed the suggestions you made. Thank you for pointing it out. I'm kind of new to bash
@MBryde nice contribution 👍 did you have a reason for the 2 hours?
I made it a variable you can change. But defaults to 120 minutes.
@gerwim Did you have time to test it yet?
@MBryde I did. Just restarted the container, which comes back with:
/app/ovpn/get-ovpn-files.sh: line 9: download_files: command not found
I didn't debug the issue yet.
@MBryde I did. Just restarted the container, which comes back with:
/app/ovpn/get-ovpn-files.sh: line 9: download_files: command not found
I didn't debug the issue yet.
Just read up on it a bit. And it's because the function is called before it's declared. Will move the function up before it's called. That should hopefully fix it.
I have tested it myself. And it seems too work just fine. It won't re-download the files unless they either don't exists or they are older than the specified time. @Joentje if you could please test it now and close the RP that would be great.
Seems to be working fine! Great contribution! Thanks @gerwim @mbryde
This will hopefully fix some of the issues with trying to redownloading the OVPN files over and over again. Now it should only do it when:
Should hopefully close these issues: Close #70 Close #49 Close #42