0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 12:04:36 +01:00
gitea/modules
wxiaoguang fa0b5b14c2
Make "install page" respect environment config (#25648)
Replace #25580

Fix #19453

The problem was: when users set "GITEA__XXX__YYY" , the "install page"
doesn't respect it.

So, to make the result consistent and avoid surprising end users, now
the "install page" also writes the environment variables to the config
file.

And, to make things clear, there are enough messages on the UI to tell
users what will happen.

There are some necessary/related changes to `environment-to-ini.go`:

* The "--clear" flag is removed and it was incorrectly written there.
The "clear" operation should be done if INSTALL_LOCK=true
* The "--prefix" flag is removed because it's never used, never
documented and it only causes inconsistent behavior.


![image](https://github.com/go-gitea/gitea/assets/2114189/12778ee4-3fb5-4664-a73a-41ebbd77cd5b)
2023-07-09 22:43:37 +00:00
..
actions Fix ref for workflows triggered by pull_request_target (#25743) 2023-07-07 19:22:03 +00:00
activitypub Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
analyze
assetfs Make "install page" respect environment config (#25648) 2023-07-09 22:43:37 +00:00
auth
avatar
base Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
cache Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
charset Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
container
context Revert package access change from #23879 (#25707) 2023-07-09 13:00:07 +00:00
csv
doctor Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
emoji
eventsource Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
generate
git Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
gitgraph
graceful Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
hcaptcha
highlight
hostmatcher
html Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
httpcache Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
httplib Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
indexer Add open/closed field support for issue index (#25708) 2023-07-07 17:10:13 +00:00
issue/template Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
json Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
label
lfs
log
markup Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
mcaptcha
metrics
migration Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
mirror
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
notification
options
packages Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
paginator
pprof
private Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
process Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
proxy
proxyprotocol
public
queue Update tool dependencies, lock govulncheck and actionlint (#25655) 2023-07-09 11:58:06 +00:00
recaptcha
references
regexplru
repository
secret
session Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
setting Make "install page" respect environment config (#25648) 2023-07-09 22:43:37 +00:00
sitemap
ssh
storage Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
structs Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
svg Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
sync
system
templates Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
test Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
testlogger Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
timeutil
translation Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
validation Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
web Make route middleware/handler mockable (#25766) 2023-07-09 12:25:53 +00:00
webhook