wxiaoguang 89d52922d0 Fix token generation when using INTERNAL_TOKEN_URI (#21669) (#21670)
Backport #21669

Fix https://github.com/go-gitea/gitea/issues/21666
Caused by https://github.com/go-gitea/gitea/pull/19663

Before: when install, the INTERNAL_TOKEN was always generated and saved.
But the internal token may be already there by INTERNAL_TOKEN_URI

After: INTERNAL_TOKEN_URI file must be non-empty. When install, skip
internal token generation if the token exists.
2022-11-03 20:54:25 +00:00
..
2022-05-06 10:12:30 +01:00
2022-10-12 13:18:26 +08:00
2022-10-12 13:18:26 +08:00
2022-08-30 21:15:45 -05:00
2022-08-30 21:15:45 -05:00
2022-08-30 21:15:45 -05:00
2022-10-12 13:18:26 +08:00
2022-06-25 19:06:01 +02:00
2022-08-21 19:20:43 +01:00
2022-10-12 13:18:26 +08:00
2022-08-11 17:48:23 +02:00