Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] OpenVPN container cron scripts save files in /root instead of / #388

Open
Poueck opened this issue Nov 2, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Poueck
Copy link

Poueck commented Nov 2, 2024

Describe the bug
The configuration update script and de CRL download script produce files that are written in the current directoy.
Crond set the current directory to /root, but files should be in /
This implies that new CRL file and new config files don't overwrite the existing one and nothing is applied

Steps To Reproduce
Steps to reproduce the behavior:

  1. Start the OpenVPN docker
  2. Change the configuration of the OpenVPN server in OpenWISP
  3. Wait for configuration script run
  4. See that configuration files are in /root directory and configuration files in / are still the originals

Expected behavior
files in / directory should be overwrited

System Informatioon:

  • OS: AlmaLinux release 8.10 (Cerulean Leopard)
  • Docker version: Docker version 26.1.3, build b72abbb
@Poueck Poueck added the bug Something isn't working label Nov 2, 2024
@Poueck
Copy link
Author

Poueck commented Nov 2, 2024

To fix the issue, I locally update crontab lines to:

*/1 * * * * cd / && sh /openvpn.sh
0 0 * * * cd / && sh /revokelist.sh

I notice that restarting OpenVPN is not needed after CRL file download. The file seems to be loaded on each new connection to the OpenVPN server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant