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

Silence curl output in pia-wg.sh #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bwitt
Copy link

@bwitt bwitt commented Nov 27, 2023

Silence wget output in pia-wg.sh by adding --silent --show-error where stdout goes to the terminal, and -s where it's being read.

Also added an echo to get the output to the terminal to look better.

Fixes #10

$ ./pia-wg.sh -c 
Generating new private key
Setting default location: any
Setting default wireguard interface name: pia
Cannot read '/home/bwitt/.config/pia-wg/pia-wg.conf', generating a default one
Please enter your privateinternetaccess.com username: pxxxxxxx
Config saved
Fetching new generation server list from PIA
Fetching PIA self-signed RSA certificate from github
Selecting server 2 from 2 choices
A new auth token is required.
Your password will NOT be saved.
Please enter your privateinternetaccess.com password for pxxxxxxx: 
Your password has been forgotten, please edit /home/bwitt/.config/pia-wg/pia-wg.conf and set PIA_PASSWORD if you wish to store it permanently.
Functional DNS is no longer required.
If you're setting up in a region with heavy internet restrictions, you can disable your alternate VPN or connection method now

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.

pia-wg.sh script has noisy curl output
1 participant