Skip to content

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

Merged
zeripath merged 1 commit into
go-gitea:mainfrom
zeripath:warn-invalid-script-type-on-startup
Jan 30, 2022
Merged

Warn at startup if the provided SCRIPT_TYPE is not on the PATH#18467
zeripath merged 1 commit into
go-gitea:mainfrom
zeripath:warn-invalid-script-type-on-startup

Conversation

@zeripath
Copy link
Copy Markdown
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
Copy Markdown
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