@@ -53,14 +53,14 @@ stringData:
53
53
env2ini::log " + '${setting}'"
54
54
55
55
if [[ -z "${section}" ]]; then
56
- export "ENV_TO_INI____ ${setting^^}=${value}" # '^^' makes the variable content uppercase
56
+ export "GITEA____ ${setting^^}=${value}" # '^^' makes the variable content uppercase
57
57
return
58
58
fi
59
59
60
60
local masked_section="${section//./_0X2E_}" # '//' instructs to replace all matches
61
61
masked_section="${masked_section//-/_0X2D_}"
62
62
63
- export "ENV_TO_INI__ ${masked_section^^}__${setting^^}=${value}" # '^^' makes the variable content uppercase
63
+ export "GITEA__ ${masked_section^^}__${setting^^}=${value}" # '^^' makes the variable content uppercase
64
64
}
65
65
66
66
function env2ini::reload_preset_envs() {
@@ -134,15 +134,15 @@ stringData:
134
134
# - initially used to set up Gitea
135
135
# Anyway, they won't harm existing app.ini files
136
136
137
- export ENV_TO_INI__SECURITY__INTERNAL_TOKEN =$(gitea generate secret INTERNAL_TOKEN)
138
- export ENV_TO_INI__SECURITY__SECRET_KEY =$(gitea generate secret SECRET_KEY)
139
- export ENV_TO_INI__OAUTH2__JWT_SECRET =$(gitea generate secret JWT_SECRET)
140
- export ENV_TO_INI__SERVER__LFS_JWT_SECRET =$(gitea generate secret LFS_JWT_SECRET)
137
+ export GITEA__SECURITY__INTERNAL_TOKEN =$(gitea generate secret INTERNAL_TOKEN)
138
+ export GITEA__SECURITY__SECRET_KEY =$(gitea generate secret SECRET_KEY)
139
+ export GITEA__OAUTH2__JWT_SECRET =$(gitea generate secret JWT_SECRET)
140
+ export GITEA__SERVER__LFS_JWT_SECRET =$(gitea generate secret LFS_JWT_SECRET)
141
141
142
142
env2ini::log "...Initial secrets generated\n"
143
143
}
144
144
145
- env | (grep ENV_TO_INI || [[ $? == 1 ]]) > /tmp/existing-envs
145
+ env | (grep GITEA || [[ $? == 1 ]]) > /tmp/existing-envs
146
146
147
147
# MUST BE CALLED BEFORE OTHER CONFIGURATION
148
148
env2ini::generate_initial_secrets
@@ -163,10 +163,10 @@ stringData:
163
163
env2ini::log ' - oauth2.JWT_SECRET'
164
164
env2ini::log ' - server.LFS_JWT_SECRET'
165
165
166
- unset ENV_TO_INI__SECURITY__INTERNAL_TOKEN
167
- unset ENV_TO_INI__SECURITY__SECRET_KEY
168
- unset ENV_TO_INI__OAUTH2__JWT_SECRET
169
- unset ENV_TO_INI__SERVER__LFS_JWT_SECRET
166
+ unset GITEA__SECURITY__INTERNAL_TOKEN
167
+ unset GITEA__SECURITY__SECRET_KEY
168
+ unset GITEA__OAUTH2__JWT_SECRET
169
+ unset GITEA__SERVER__LFS_JWT_SECRET
170
170
fi
171
171
172
- environment-to-ini -o $GITEA_APP_INI -p ENV_TO_INI
172
+ environment-to-ini -o $GITEA_APP_INI
0 commit comments