diff --git a/easy-wg-quick b/easy-wg-quick index 238b4f1..e9f3d4e 100755 --- a/easy-wg-quick +++ b/easy-wg-quick @@ -677,7 +677,7 @@ download_and_install_wg_quick() { } if test "$(id -u)" -eq 0; then - DESTDIR="/usr/local/bin" + DESTDIR="/usr/local/sbin" else DESTDIR="${HOME}/.local/bin" mkdir -p "$DESTDIR" diff --git a/tests/arguments.bats b/tests/arguments.bats index 455ac4a..ee9a477 100755 --- a/tests/arguments.bats +++ b/tests/arguments.bats @@ -77,7 +77,7 @@ load teardown setup [[ "${#lines[@]}" -ge 0 ]] if [[ "$(id -u)" -eq 0 ]]; then - [[ -x /usr/local/bin/wg-quick ]] + [[ -x /usr/local/sbin/wg-quick ]] else [[ -x "${HOME}/.local/bin/wg-quick" ]] fi @@ -89,7 +89,7 @@ load teardown setup [[ "${#lines[@]}" -ge 0 ]] if [[ "$(id -u)" -eq 0 ]]; then - [[ -x /usr/local/bin/wg-quick ]] + [[ -x /usr/local/sbin/wg-quick ]] else [[ -x "${HOME}/.local/bin/wg-quick" ]] fi