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

Warn at startup if the provided SCRIPT_TYPE is not on the PATH #18467

Merged

Conversation

zeripath
Copy link
Contributor

Several users run Gitea in situations whereby bash is not available.
If the SCRIPT_TYPE is not changed this will cause hooks to fail.
A simple test to check if the provided type is on the PATH should be
sufficient to warn them about this problem.

Signed-off-by: Andrew Thornton art27@cantab.net

@zeripath zeripath added the type/enhancement An improvement of existing functionality label Jan 30, 2022
@zeripath zeripath added this to the 1.17.0 milestone Jan 30, 2022
Several users run Gitea in situations whereby `bash` is not available.
If the `SCRIPT_TYPE` is not changed this will cause hooks to fail.
A simple test to check if the provided type is on the PATH should be
sufficient to warn them about this problem.

Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath force-pushed the warn-invalid-script-type-on-startup branch from 1fd1368 to 4217764 Compare January 30, 2022 15:32
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 30, 2022
@zeripath
Copy link
Contributor Author

make lgtm work

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 30, 2022
@zeripath zeripath merged commit e5ec7a0 into go-gitea:main Jan 30, 2022
@zeripath zeripath deleted the warn-invalid-script-type-on-startup branch January 30, 2022 16:33
Chianina pushed a commit to Chianina/gitea that referenced this pull request Mar 28, 2022
…gitea#18467)

Several users run Gitea in situations whereby `bash` is not available.
If the `SCRIPT_TYPE` is not changed this will cause hooks to fail.
A simple test to check if the provided type is on the PATH should be
sufficient to warn them about this problem.

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants