[GH-ISSUE #3412] [BUG] Self-hosted scripts does not invoke when default shell is not sh/bash #3251

Open
opened 2026-11-07 17:58:06 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @stck on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3412

Describe the bug
Server running ubuntu with fish rejects check_server_is_busy.sh since it cannot use syntax LOCK_FILE='/var/...' since it requires set in front of command.

To Reproduce
Steps to reproduce the behavior:

  1. Set default shell to fish
  2. Run automatic installation
  3. Script hangs after ~5 seconds saying "Server is busy installing other software"
  4. After multiple tries it rejects with "Package manager error"

Expected behavior
If scripts are written in bash/sh they should have at least shebang OR ssh connection must use exec bash.

Log files

fish: Unsupported use of '='. In fish, please use 'set LOCK_FILE "/var/lib/dpkg/lock-frontend"'.
if which apt-get > /dev/null 2>&1 || command -v apt-get > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/lib/dpkg/lock-frontend";\

Server (please complete the following information):

  • OS: Ubuntu 24.04

Additional context
For fish users it might be helpful to temporary append

if not status is-interactive
    exec bash
end

to a ~/.config/fish/config.fish of a user that credentials used to connect

Originally created by @stck on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3412 **Describe the bug** Server running ubuntu with fish rejects check_server_is_busy.sh since it cannot use syntax LOCK_FILE='/var/...' since it requires `set` in front of command. **To Reproduce** Steps to reproduce the behavior: 1. Set default shell to fish 2. Run automatic installation 3. Script hangs after ~5 seconds saying "Server is busy installing other software" 4. After multiple tries it rejects with "Package manager error" **Expected behavior** If scripts are written in bash/sh they should have at least shebang OR ssh connection must use exec bash. **Log files** ``` fish: Unsupported use of '='. In fish, please use 'set LOCK_FILE "/var/lib/dpkg/lock-frontend"'. if which apt-get > /dev/null 2>&1 || command -v apt-get > /dev/null 2>&1; then LOCK_CMD="fuser"; LOCK_FILE="/var/lib/dpkg/lock-frontend";\ ``` **Server (please complete the following information):** - OS: Ubuntu 24.04 **Additional context** For fish users it might be helpful to temporary append ``` if not status is-interactive exec bash end ``` to a `~/.config/fish/config.fish` of a user that credentials used to connect
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3251
No description provided.