Disallow duplicate storage paths (#26484)

Replace #26380
This commit is contained in:
Lunny Xiao 2024-02-09 22:06:03 +08:00 committed by GitHub
parent c7a21cbb0c
commit 92fda9c5a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 42 additions and 20 deletions

View file

@ -66,8 +66,12 @@ func init() {
AppWorkPath = filepath.Dir(AppPath)
}
fatalDuplicatedPath("app_work_path", AppWorkPath)
appWorkPathBuiltin = AppWorkPath
customPathBuiltin = CustomPath
fatalDuplicatedPath("custom_path", CustomPath)
customConfBuiltin = CustomConf
}