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

Abort install #13

Closed
4 tasks
lexmaxak opened this issue Mar 27, 2023 · 1 comment
Closed
4 tasks

Abort install #13

lexmaxak opened this issue Mar 27, 2023 · 1 comment

Comments

@lexmaxak
Copy link

Checklist

Describe the issue
Installing WireGuard, please wait...

  • apt-get -yqq update
  • apt-get -yqq install wireguard qrencode
    wireguard.sh: line 652: /etc/wireguard/wg0.conf: No such file or directory
    chmod: cannot access '/etc/wireguard/wg0.conf': No such file or directory
  • systemctl enable --now wg-iptables.service
    grep: /etc/wireguard/wg0.conf: No such file or directory
    grep: /etc/wireguard/wg0.conf: No such file or directory
    wireguard.sh: line 401: /etc/wireguard/wg0.conf: No such file or directory
    grep: /etc/wireguard/wg0.conf: No such file or directory
    grep: /etc/wireguard/wg0.conf: No such file or directory
    wg: Key is not the correct length or format
    grep: /etc/wireguard/wg0.conf: No such file or directory
    grep: /etc/wireguard/wg0.conf: No such file or directory
  • systemctl enable --now wg-quick@wg0.service

To Reproduce

  1. Install WG
  2. Deinstall WG
  3. Install WG

Expected behavior
A clear and concise description of what you expected to happen.

Logs
Add error logs to help explain the problem, if applicable.

Server (please complete the following information)

  • OS: [e.g. Debian 11]
  • Hosting provider (if applicable): [e.g. GCP, AWS]

Client (please complete the following information)

  • Device: [e.g. iPhone 12]
  • OS: [e.g. iOS 15]

Additional context
Add any other context about the problem here.

@hwdsl2
Copy link
Owner

hwdsl2 commented Mar 30, 2023

@lexmaxak Hello! Thanks for reporting this issue. I could not reproduce this issue on a Ubuntu 22.04 or Debian 11 system. Most likely it's because the command apt-get -yqq install wireguard qrencode failed for some reason when you reinstalled WireGuard, and it's not an issue with the script itself. I'll add a check in the script to help catch this.

@hwdsl2 hwdsl2 closed this as completed Mar 30, 2023
hwdsl2 added a commit that referenced this issue Mar 30, 2023
- Add a check to make sure /etc/wireguard exists
  after "apt-get install".
- Ref: #13
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

No branches or pull requests

2 participants