Default HTTP socket to the tmp directory

This commit is contained in:
Brian Picciano 2024-07-14 14:20:45 +02:00
parent 8dd6768786
commit 6fff1dfaeb

View File

@ -43,9 +43,11 @@ func (e EnvVars) init() error {
func getDefaultHTTPSocketDirPath() string { func getDefaultHTTPSocketDirPath() string {
path, err := firstExistingDir( path, err := firstExistingDir(
"/tmp",
// TODO it's possible the daemon process can't actually write to these
"/run", "/run",
"/var/run", "/var/run",
"/tmp",
"/dev/shm", "/dev/shm",
) )
if err != nil { if err != nil {