Comments (11)
Something like angristan/openvpn-install#261
from wireguard-install.
#46 if you want have possibility to make this but have add a good system -install or -remove next is for add more clients
from wireguard-install.
Something like angristan/openvpn-install#261
angristan/openvpn-install#592 should be considered too
from wireguard-install.
It really wouldn't be big trouble to add a function for checking the state of a variable, if the variable.
https://www.cyberciti.biz/faq/unix-linux-bash-script-check-if-variable-is-empty/ that can be fairly easily inserted in near the beginning and then the rest of the script can function basically the same. This way you could use this in headless deployments.
from wireguard-install.
It really wouldn't be big trouble to add a function for checking the state of a variable, if the variable.
I can't really work on it until my refactoring PRs are reviewed and eventually merged as they conflict with each other and working on master isn't an option. After if you like you can open a PR for this too, the codebase will be similar to the openvpn-install repo.
from wireguard-install.
from wireguard-install.
This is actually way easier than using if's and should not require any major code changes. Ignore everything you see in that cyberciti.biz link. You can simply use bash variable substitution. For example:
$ cat things.sh
echo ${lolwat:-things}
$ bash things.sh
things
$
vs
$ lolwat=omgursh bash things.sh
omgursh
$
from wireguard-install.
from wireguard-install.
from wireguard-install.
We aren't going to use functions but variable substitution like it was already done in the openvpn-install repo https://github.com/angristan/openvpn-install/blob/eca5be8aacc54a570bb3c5306d8764e1be3cab79/openvpn-install.sh#L603-L605
from wireguard-install.
from wireguard-install.
Related Issues (20)
- WireGuard
- I can not connect to internet HOT 7
- Improve config file permissions
- I hope you can even consider making a script for feebsd
- Stopped working for no reason HOT 3
- No DNS resolving on Debian after installed resolvconf HOT 4
- Error bringing up tunnel: Bad address HOT 1
- Support different public interface for ipv6 traffic
- No time and traffic restrictions
- Vpn
- Add option not to use IPv6
- [feature request] check if systemd-resolved in installed
- failed to installed systemd service
- Wrong IP when installing, better to use "dig" than "ip"
- script generates invalid key? HOT 4
- Error Happens in Oracle Linux 9 HOT 1
- Command deprecated HOT 1
- Vpn
- script blindly assumes packages will be installed HOT 1
- multiple ipv4 missing in .sh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireguard-install.