diff options
Diffstat (limited to 'www/forgejo/files')
-rw-r--r-- | www/forgejo/files/app.ini.sample.in | 5 | ||||
-rw-r--r-- | www/forgejo/files/forgejo.in | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/forgejo/files/app.ini.sample.in b/www/forgejo/files/app.ini.sample.in index d625a9ebabab..b54e756578be 100644 --- a/www/forgejo/files/app.ini.sample.in +++ b/www/forgejo/files/app.ini.sample.in @@ -11,8 +11,9 @@ # choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding, # JWT_SECRET is a 32-byte random number in BASE64 encoding. # -# You can generate the token using for example: -# openssl rand -base64 64 +# You can generate appropriate values using: +# gitea generate secret [INTERNAL_TOKEN|JWT_SECRET|LFS_JWT_SECRET|SECRET_KEY] +# and then copy that output to the appropriate place in this file. # # You can let Forgejo add these to the config for you; you need to make # app.ini writeable by the git user. diff --git a/www/forgejo/files/forgejo.in b/www/forgejo/files/forgejo.in index 2879239c7d68..026fed82b0b2 100644 --- a/www/forgejo/files/forgejo.in +++ b/www/forgejo/files/forgejo.in @@ -52,7 +52,8 @@ forgejo_start() { forgejo_prestart() { if checkyesno forgejo_configcheck_enable; then - if su -m ${forgejo_user} -c "%%PREFIX%%/sbin/${name} doctor check >/dev/null"; then + if su -m ${forgejo_user} -c "FORGEJO_CUSTOM=${forgejo_custom} \ + %%PREFIX%%/sbin/${name} doctor check >/dev/null"; then else echo "cannot start ${name} because of configuration errors. Run" >&2 echo " su -m git -c '${name} doctor check'" >&2 |