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

Fix dependency issue when disabling Wireguard #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olifre
Copy link

@olifre olifre commented Feb 10, 2023

When disabling Wireguard, the config file must be purged only after the service is stopped, not before. Otherwise, stopping the service fails and the interface remains, and also re-enabling the service fails, since the interface is already there.

Fix this by flipping the order of dependencies for absent vs. present.

When ensuring "absent", the service must be stopped before the config is removed,
otherwise, stopping the service fails and the interface remains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant