Description
In the repository settings configuration source file there is two lines forcing the use of bash for the builtin ssh server:
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/modules/setting/repository.go#L269
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/modules/setting/repository.go#L289
This prevents certain distributions such as Alpine Linux or others which don't have bash installed by default to fail.
Defaulting to posix shell instead will fix this, as /bin/sh is rather usually a symlink to the system's default shell.
Forgejo Version
5f83399d29
Can you reproduce the bug on Forgejo Next?
Yes
Logs
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Forgejo?
It is running directly in a VM running alpine linux 3.18 with edge repositories.
Database
PostgreSQL
### Description
In the repository settings configuration source file there is two lines forcing the use of `bash` for the builtin ssh server:
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/modules/setting/repository.go#L269
https://codeberg.org/forgejo/forgejo/src/branch/forgejo/modules/setting/repository.go#L289
This prevents certain distributions such as Alpine Linux or others which don't have bash installed by default to fail.
Defaulting to posix shell instead will fix this, as `/bin/sh` is rather usually a symlink to the system's default shell.
### Forgejo Version
5f83399d29
### Can you reproduce the bug on Forgejo Next?
Yes
### Logs
_No response_
### Screenshots
_No response_
### Git Version
_No response_
### Operating System
_No response_
### How are you running Forgejo?
It is running directly in a VM running alpine linux 3.18 with edge repositories.
### Database
PostgreSQL