Use ./store as the storage directory
This commit is contained in:
8
lts.go
8
lts.go
@ -83,7 +83,7 @@ func basicAuth(handler http.HandlerFunc, realm string) http.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
var storePath string
|
||||
var storePath string = "./store"
|
||||
|
||||
// https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/
|
||||
func byteCountSI(b int64) string {
|
||||
@ -233,12 +233,6 @@ func watchAllowedUsers() chan bool {
|
||||
}
|
||||
|
||||
func main() {
|
||||
storePathValue, ok := os.LookupEnv("LTS_STORE_PATH")
|
||||
if !ok {
|
||||
log.Fatal("LTS_STORE_PATH not set")
|
||||
}
|
||||
storePath = storePathValue
|
||||
|
||||
reloadAllowedUsers()
|
||||
doneWatching := watchAllowedUsers()
|
||||
|
||||
|
Reference in New Issue
Block a user