diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-01-29 23:00:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 10:00:27 +0800 |
commit | 04cbdf5c08ef7468100269935613250846e801c4 (patch) | |
tree | f4989d57278688010086bc77944acbb7baf6ed82 /modules/options/dynamic.go | |
parent | 35ada598cc7d74f648ad35d2b1e1963976b2c9bf (diff) | |
download | gitea-04cbdf5c08ef7468100269935613250846e801c4.tar.gz gitea-04cbdf5c08ef7468100269935613250846e801c4.zip |
Implement basic app.ini and path checks to doctor cmd (#10064)
* Add doctor check of app.ini paths
* Make /custom dir not mandatory
* Fix message and improve interface
* Update cmd/doctor.go
Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>
* Apaise lint
* Isn't the linter a sweet? (1)
* Isn't the linter a sweet? (2)
* Isn't the linter a sweet?? (3)
* Restart CI
Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/options/dynamic.go')
-rw-r--r-- | modules/options/dynamic.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/options/dynamic.go b/modules/options/dynamic.go index 7de7cfbd61..20dde11dc3 100644 --- a/modules/options/dynamic.go +++ b/modules/options/dynamic.go @@ -98,3 +98,8 @@ func fileFromDir(name string) ([]byte, error) { return []byte{}, fmt.Errorf("Asset file does not exist: %s", name) } + +// IsDynamic will return false when using embedded data (-tags bindata) +func IsDynamic() bool { + return true +} |