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 the fail2ban helper when using using --use_template arg #1743

Merged
merged 7 commits into from
Nov 27, 2023
Merged

fix the fail2ban helper when using using --use_template arg #1743

merged 7 commits into from
Nov 27, 2023

Conversation

OniriCorpe
Copy link
Member

@OniriCorpe OniriCorpe commented Nov 26, 2023

The problem

when the fail2ban helper is used with the --use_template argument, the logpath variable is not assigned, so there's an unbound error

thanks to @Psycojoker who helped me to understand the bug ^w^

Solution

if logpath doesn't exist, get the logpath from the template and assign it to the logpath variable
replace any __VAR__ in the logpath by their real variable using ynh_replace_vars

PR Status

yolo

How to test

...

@OniriCorpe
Copy link
Member Author

poke @alexAubin

@OniriCorpe OniriCorpe changed the title fix the helper when using using --use_template arg fix the fail2ban helper when using using --use_template arg Nov 26, 2023
helpers/fail2ban Outdated Show resolved Hide resolved
helpers/fail2ban Outdated Show resolved Hide resolved
helpers/fail2ban Outdated Show resolved Hide resolved
OniriCorpe and others added 2 commits November 26, 2023 20:42
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
helpers/fail2ban Outdated Show resolved Hide resolved
@alexAubin alexAubin merged commit 4bfe2c9 into YunoHost:dev Nov 27, 2023
1 check passed
@OniriCorpe OniriCorpe deleted the fix-fail2ban-helper branch November 27, 2023 14:22
@Josue-T Josue-T mentioned this pull request Nov 28, 2023
2 tasks
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.

2 participants