camdenAR
f9ae9662ec
fix(scripts): Match full client name when disabling
...
This fix prevents "pivpn -off" from failing to disable a client when another client is already disabled and the disabled client name starts with the client name you're trying to disable.
e.g. "user-1" wasn't able to be disabled if "user" was already disabled.
2023-10-21 21:19:07 +02:00
Dolorosus
d54e0a452d
fix(scripts): #issue-1747767321 ensure only "user" is disabled
...
* fix common https://github.com/pivpn/pivpn/issues/1733#issue-1747767321
pivpn -off/-on user (en-/dis-)ables also user-1, user-2...user-n
this fix prevents from (en-/dis-)ableing user-1 ...user-n
2023-06-09 15:13:36 +02:00
CoolCat467
ab8e372e83
fix(scripts): fix default handling
...
fix #1663 : made indicated reply defaults work correctly
2023-02-24 16:18:26 -06:00
4s3ti
71f7ca9b3b
refactor(scripts): Structure code as per codestyle
...
Fix #1636
Refactor code according to code style
Constants, Functions, Script
2022-10-08 01:11:10 +02:00
Rob Wall
0e78a1148c
fix(dev-infra): move function before use
...
move err function above where it is first called
2022-10-01 01:55:06 -05:00
Giulio Coa
af20461590
Reformatted the code
2022-08-01 22:38:19 +02:00
Giulio Coa
edb36c08f7
Added Alpine Linux support ( #1567 )
2022-07-26 15:20:35 +02:00
4s3ti
2a78fce9d3
Shellcheck compliance
...
scripts/wireguard/disableCONF.sh
* Mapfile instead of double quoted LIST=("$(...)")
scripts/wireguard/enableCONF.sh
* SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
* Disabled warning
* SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
* Changed to mapfile
* SC2086: Double quote to prevent globbing and word splitting.
* Added double quotes
2021-11-03 15:38:45 +01:00
4s3ti
fb71fdd9fd
Shellcheck compliance
...
scripts/wireguard/disableCONF.sh
* SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
* Disabled warning
* SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
* Added double quotes
* SC2086: Double quote to prevent globbing and word splitting.
* Added double quotes
2021-11-03 15:20:48 +01:00
Dundar Göc
fe636e3f43
Fixed shellcheck warning SC2164: "Use 'cd ... || exit' or 'cd ... || return' in case cd fails."
2021-02-13 12:11:49 +01:00
Dundar Göc
513c2afc2e
Fixed shellcheck warning SC2004, SC2006, SC2129, SC2219. Issue #1233 .
...
SC2004: "$/${} is unnecessary on arithmetic variables."
SC2006: "Use $(...) notation instead of legacy backticked `...`."
SC2129: "Consider using { cmd1; cmd2; } >> file instead of individual redirects."
SC2219: "Instead of 'let expr', prefer (( expr ))."
2021-02-07 21:31:13 +01:00
Roger Haxby
86de3eaa8c
corect help on disable and enable
2020-12-10 23:59:54 +00:00
Roger Haxby
6009e52e74
disabled in square brackets
2020-12-08 23:44:51 +00:00
Roger Haxby
13d40399f3
fix listing disabled clients
2020-10-27 21:25:27 +00:00
shelleycat485
9dd67114f8
disable and enable wireguard clients
2020-10-21 22:35:29 +01:00