diff --git a/hack/faasd-provider.service b/hack/faasd-provider.service index 19ecced..997f7ee 100644 --- a/hack/faasd-provider.service +++ b/hack/faasd-provider.service @@ -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 diff --git a/pkg/provider/handlers/deploy.go b/pkg/provider/handlers/deploy.go index 8055a0d..3c844ab 100644 --- a/pkg/provider/handlers/deploy.go +++ b/pkg/provider/handlers/deploy.go @@ -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{}