Skip to content

Add FHS-compliant-script #6923

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

Merged
merged 4 commits into from
May 26, 2019
Merged

Conversation

zeripath
Copy link
Contributor

This adds a contrib script that recommends shadowing the gitea binary on debian systems and sets environment variable defaults for these systems.

This should probably be considered a WIP or suggestion unless people think it's exactly right.

@codecov-io
Copy link

codecov-io commented May 12, 2019

Codecov Report

Merging #6923 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6923      +/-   ##
==========================================
- Coverage   41.45%   41.44%   -0.01%     
==========================================
  Files         442      442              
  Lines       59610    59610              
==========================================
- Hits        24711    24708       -3     
- Misses      31669    31672       +3     
  Partials     3230     3230
Impacted Files Coverage Δ
modules/log/colors_router.go 83.33% <0%> (-4.17%) ⬇️
routers/repo/view.go 42.02% <0%> (-1.02%) ⬇️
models/repo_list.go 73.09% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d67fd69...a8b4eae. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 12, 2019
APP_INI="/etc/gitea/app.ini"

APP_INI_SET=""
for i in "$@"; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

Copy link
Contributor Author

@zeripath zeripath May 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realised I should put $CONF_ARG bit first just in case we have commands with arguments later.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 14, 2019
@techknowlogick techknowlogick added the topic/distribution This PR changes something about the packaging of Gitea label May 15, 2019
@zeripath
Copy link
Contributor Author

zeripath commented May 20, 2019

@mrsdizzie do you think we should be setting HOME too?

@zeripath
Copy link
Contributor Author

I think it's probably ok not setting HOME actually - everything that defaults to using it can be set with app.ini.

@mrsdizzie
Copy link
Member

Agree, $HOME should just be whatever it is and we shouldn't mess with it

@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 May 26, 2019
@techknowlogick techknowlogick merged commit 2c412f5 into go-gitea:master May 26, 2019
@zeripath zeripath deleted the fhs-compliant-script branch May 28, 2019 12:46
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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. topic/distribution This PR changes something about the packaging of Gitea
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants