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:
Shikachuu
2021-08-28 14:01:22 +02:00
committed by Alex Ellis
parent 5ac51663da
commit b8ada0d46b
2 changed files with 2 additions and 2 deletions

View File

@ -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{}