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

wg.sh do not create the saved.tmp file #6

Open
mhramos85 opened this issue Oct 19, 2020 · 2 comments · May be fixed by #11
Open

wg.sh do not create the saved.tmp file #6

mhramos85 opened this issue Oct 19, 2020 · 2 comments · May be fixed by #11
Labels
bug Something isn't working

Comments

@mhramos85
Copy link

wg.sh do not create the saved.tmp file

@alectrocute
Copy link
Owner

alectrocute commented Dec 17, 2020

Check permissions of folders within repo to make sure it can write. I'll treat this as a bug.

@alectrocute alectrocute added the bug Something isn't working label Dec 17, 2020
@eercanayar
Copy link

The same here. The problem is, generate_and_install_server_config_file() loops $SAVED_FILE content to generate $WG_TMP_CONF_FILE. But add_user() doesn't add newly added user to $SAVED_FILE. Thus, the $SAVED_FILE remains empty. As a result, this makes final /etc/wireguard/$_INTERFACE.conf file corrupted. This issue is the same with issue #10.

As a workaround, I've added a line in the add_user() to append the newly added user details to $SAVED_FILE. I will send this as a PR. But it should be a more powerful solution to generate /etc/wireguard/$_INTERFACE.conf from profiles instead of appending user info to the temp file.

@eercanayar eercanayar linked a pull request Jan 23, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants