mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-22 14:53:30 +00:00
Changed default and fallback host_dir
Have to change them since we are trying to resolve system services and the system services are in the /var/lib/faasd/hosts file instead of /var/lib/faasd-provider/hosts file. Signed-off-by: Shikachuu <zcmate@gmail.com>
This commit is contained in:
@ -5,7 +5,7 @@ Description=faasd-provider
|
||||
MemoryLimit=500M
|
||||
Environment="secret_mount_path={{.SecretMountPath}}"
|
||||
Environment="basic_auth=true"
|
||||
Environment="hosts_dir=/var/lib/faasd-provider"
|
||||
Environment="hosts_dir=/var/lib/faasd"
|
||||
ExecStart=/usr/local/bin/faasd provider
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
@ -249,7 +249,7 @@ func prepareEnv(envProcess string, reqEnvVars map[string]string) []string {
|
||||
func getMounts() []specs.Mount {
|
||||
wd, _ := os.LookupEnv("hosts_dir")
|
||||
if len(wd) == 0 {
|
||||
wd = "/var/lib/faasd-provider"
|
||||
wd = "/var/lib/faasd"
|
||||
}
|
||||
|
||||
mounts := []specs.Mount{}
|
||||
|
Reference in New Issue
Block a user