Commit graph

307 commits

Author SHA1 Message Date
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
4s3ti
96dc4f0c04
refactor(scripts): Fix codestyle 2023-03-16 01:27:13 +01:00
4s3ti
50bc333962
refactor(scripts): preserve exit codes (SC2320)
SC2320: Set error code to variable to preserve it after other commands.
2023-03-16 01:17:50 +01:00
4s3ti
fe03be4396
refactor(core): Ignore SC2317 2023-03-16 01:13:08 +01:00
Austin English
c1097ca69c feat(scripts): allow generating a QR code from a filename
Instead of returning an error, use the filename to generate the QR code.
2023-02-27 16:57:32 +01:00
4s3ti
f1d0d974b2
Merge pull request #1697 from CoolCat467/master
fix(scripts): made indicated reply defaults work correctly
2023-02-25 00:01:04 +01: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
1e1c8fa7cb
Merge pull request #1661 from astroganga/master
Show correct information and fix error caused by dash on printf in clientStat.sh
2022-12-01 11:48:00 +01:00
mgiuliano
90c070a9ad fix(scripts): clientStat.sh
show correct information and fix error caused by dash on printf
2022-12-01 11:15:47 +01:00
4s3ti
704d9f9795
refactor: Harmonize ownership
fix #1608: Use same moethod to define ownership in bot makeOVPN and makeCONF scripts
2022-11-29 00:05:34 +01:00
4s3ti
f7f81e1bf4 fix(scripts): uninstall default option
fix #1653: update prompt to match the default action of script
2022-11-28 23:34:45 +01:00
rwall
c25e82fc0f
fix(dev-infra): move source to before var ref
move file sourcing above first references to the variables it loads
2022-10-19 16:48:51 -05:00
4s3ti
5fd030c7ba
fix(ovpn): clientstat.sh
Add new line at the end of output
2022-10-08 01:22:00 +02: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
4s3ti
79f7caf4d3
fix(scripts): Evaluate client names correctly
Fix issue #1639
Add extra check for empty spaces
Fix client names not being checked when using pivpn add -n
2022-10-07 23:59:57 +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
4s3ti
202c173dd7 fix(openvpn): makeOVPN Missing space
fix issue #1616
Add extra comments
2022-09-04 17:40:01 +02:00
4s3ti
86d4949d14 fix(makeovpn): Fix wrong export
add missing "=" keynoPASS export
2022-08-25 02:03:50 +02:00
4s3ti
e5b9486c52
fix(makeovpn): Remove expect dependency
Remove dependency on expect
Fix issue #1600 and #1601
2022-08-25 00:27:55 +02:00
Giulio Coa
dda4d99f10 refactor: improve code style
Improve the code style of some pieces of code
2022-08-09 10:09:43 +02:00
Giulio Coa
e09f3a04bd fix(installer): fix some code style errors
Fix some code style error about the pipelines
2022-08-05 23:11:22 +02: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
Rushab Shah
f2190afc0b
WireGuard: removeCONF: Remove ipv6 DNS entries too 2022-04-13 22:14:03 +00:00
DerDanilo
642aa383a4
Merge branch 'test' into wg_ipv6_client_config 2022-03-10 10:56:50 +01:00
DerDanilo
4dfcfd0d17 add IPv6 support, exclude from testing since travis doesn't have proper ipv6 support 2022-03-09 20:13:50 +01:00
4s3ti
82cd6cb871
Merge pull request #1432 from peterlewis/patch-1
Replace 'user' with 'client' in help text
2022-01-04 10:42:02 +01:00
4s3ti
478b8ecb6c
Merge pull request #1427 from scubbo/master
Correct typo in Debug script output styling
2021-12-16 18:09:52 +01:00
Peter Lewis
fdf58a95c6
Replace 'user' with 'client' in help text
Text replacement so as to provide clarity and consistency as to the behaviour of this command.
2021-12-16 11:44:59 +00:00
Martin
b00205c83d
Fix typo in removeOVPN.sh for default action
The action if the user does not input anything when revoking a certificate is to not revoke. Let the text reflect that by making N uppercase.
2021-12-07 20:42:13 +01:00
Jack Jackson
202e03c71b Correct typo in Debug script output styling
Compare with `scripts/openvpn/pivpnDebug.sh`, where the escape
characters are correctly sequenced for "a tab, and then some
styled text".
2021-12-05 15:28:42 -08:00
4s3ti
aa6833ed93 Issue #1419: Dead links
Changed dead links to old wiki with the correct links on docs page
2021-11-30 20:55:20 +01:00
4s3ti
88a3df99ca
Merge pull request #1410 from EWouters/master
Allow DNS incoming requests through UFW
2021-11-18 12:19:13 +01:00
EWouters
45f0ad5d37
Allow DNS incoming requests through UFW
Fixes https://github.com/pivpn/pivpn/issues/1282
2021-11-18 12:00:18 +01:00
4s3ti
8acbff58dd shellcheck compliance
scripts/wireguard/removeCONF.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).
    * Replaced LIST=($(...)) with mapfile
  * SC2086: Double quote to prevent globbing and word splitting.
    * Added double quotes
  * SC2154: <VarName> is referenced but not assigned.
    * Disabled warning
2021-11-03 18:09:00 +01:00
4s3ti
e6933e6c53 Shellcheck compliance
scripts/wireguard/pivpnDEBUG.sh
  * SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
    * Disabled warning
  * SC2154: <VarName> is referenced but not assigned.
    * Disabled warning
  * SC2086: Double quote to prevent globbing and word splitting.
    * Added double quotes
2021-11-03 18:07:19 +01:00
4s3ti
f823b2bd4c Shellcheck compliance
scripts/wireguard/makeCONF.sh
  * SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
    * Disabled warning
  * SC2154: <VariableName> is referenced but not assigned.
    * Disabled warning
  * SC2086: Double quote to prevent globbing and word splitting.
    * Added double quotes
2021-11-03 17:56:42 +01: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
4s3ti
8bd867894a Shellcheck compliance
scripts/wireguard/bash-completion
  * SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting)
    * Added double quotes
2021-11-03 14:59:06 +01:00
4s3ti
78810a5781 Shellcheck compliance
scripts/openvpn/removeOVPN.sh
  * SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
    * Disabled warning
  * SC2128: Expanding an array without an index only gives the first element.
    * Disabled warning, as its only checking if variable is empty
  * SC2001: See if you can use ${variable//search/replace} instead.
    * Disabled warning, regex doesn't apply to ${variable//search/replace}
  * SC2086: Double quote to prevent globbing and word splitting.
    * Added double quotes
  * SC2140: Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?
    * Removed unecessary double quotes from %s
  * SC2154: <VariableName> is referenced but not assigned.
    * Disabled warning, variables sourced externally
2021-11-03 13:40:51 +01:00
4s3ti
0e313fa3b3 Shellcheck compliance
scripts/openvpn/pivpnDebug.sh
  * SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
    * Disabled warning message
  * SC2154: <VariableName> is referenced but not assigned.
    * Disabled warning message
  * SC2086: Double quote to prevent globbing and word splitting.
    * Added double quotes
  * SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
    * Added double quotes
2021-11-03 13:02:25 +01:00
4s3ti
e476cc11ee Shellcheck compliance
scripts/openvpn/makeOVPN.sh
 * SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
  * Disabled warning
 * SC2086: Double quote to prevent globbing and word splitting.
  * Added missing double quotes
 * SC2001: See if you can use ${variable//search/replace} instead.
  * Disabled warning, suggested method doesn't go well with regexp
 * SC2154: <VarName> is referenced but not assigned.
  * Disabled warning, variables are sourced externally and may differ
2021-11-03 12:21:51 +01:00
4s3ti
12de079a8c Shellcheck compliance
scripts/openvpn/clientStats.sh
  * fix SC2086: Double quote to prevent globbing and word splitting.
  * Added missing double quotes
2021-11-03 02:00:20 +01:00
4s3ti
4d2e3ed3f8 Shellcheck compliance
scripts/openvpn/bash-completion
 * fix SC2207: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
 * Added double quotes
2021-11-02 18:30:12 +01:00
4s3ti
685133bc00 Shellcheck compliance
scripts/backup.sh
  * Fixes SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
  * Fixes SC2086: Double quote to prevent globbing and word splitting.
  * Disabled warning for SC1090
  * Added missing double quotes
2021-11-02 17:14:05 +01:00
4s3ti
57cc772d18 Shellcheck compliance
scripts/uninstall.sh
  * SC2154: <VarName> is referenced but not assigned.
  * Disabled warnings for mentioned errors as they are sourced externaly and may vary
2021-11-02 17:08:27 +01:00
4s3ti
8598013294 Shellcheck compliance
scripts/self_check.sh
  * Fixes SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
  * SC2154: <VarName> is referenced but not assigned.
  * Disabled warnings for the mentioned errors as they are sourced externaly and may vary
2021-11-02 17:01:08 +01:00
4s3ti
0de5656208 Shellcheck Compliance
scripts/bacup.sh
 * Fixes SC2154: install_home is referenced but not assigned.
 * Disabled error as this variable is sourced from setupVars file
2021-11-02 17:00:47 +01:00
Kai Hoffman
1423f97376
Fix grammar
Update "simpling" to "simply".
2021-09-17 16:05:45 +01:00