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

Working only in bash shell only #1201

Open
YouROK opened this issue Oct 25, 2024 · 1 comment
Open

Working only in bash shell only #1201

YouROK opened this issue Oct 25, 2024 · 1 comment

Comments

@YouROK
Copy link

YouROK commented Oct 25, 2024

Describe the bug
If a default shell other than bash is installed on the server, the installation fails.

To Reproduce
Steps to reproduce the behavior:
On vps server:

apt install fish
chsh
# enter "/usr/bin/fish"

On host in AmneziaVPN select Self-hosted VPN and all next. VPN protocol I select awg.
And click Install button

Expected behavior
Execute scripts in the bash, not in the default shell.

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS 15.0.1
  • Version 4.8.1.9

Server (please complete the following information):

  • OS: Debian 12
@vanyasem
Copy link

The scripts should specify a shebang #!/usr/bin/env bash instead of relying on the default shell

check_user_in_sudo.sh fails to get executed on fish shell, resulting in an Error 205: ServerUserNotInSudo:

$ CUR_USER=$(whoami);\
  groups $CUR_USER
fish: Unsupported use of '='. In fish, please use 'set CUR_USER $(whoami)'.

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

No branches or pull requests

2 participants