From 1b89d0c8dffff397c9ea80f365022256cebeaa30 Mon Sep 17 00:00:00 2001
From: Vitaliy Filippov <vitalif@yourcmc.ru>
Date: Tue, 27 Jul 2021 13:49:43 +0300
Subject: [PATCH] geesefs/goofys does not accept options after arguments
 because of urfave/cli

---
 pkg/mounter/geesefs.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/mounter/geesefs.go b/pkg/mounter/geesefs.go
index b2cf722..6c6d291 100644
--- a/pkg/mounter/geesefs.go
+++ b/pkg/mounter/geesefs.go
@@ -50,9 +50,9 @@ func (geesefs *geesefsMounter) Mount(source string, target string) error {
 		"--endpoint", geesefs.endpoint,
 		"--region", geesefs.region,
 		"-o", "allow_other",
-		fullPath, target,
 	}
 	args = append(args, geesefs.meta.MountOptions...)
+	args = append(args, fullPath, target)
 	os.Setenv("AWS_ACCESS_KEY_ID", geesefs.accessKeyID)
 	os.Setenv("AWS_SECRET_ACCESS_KEY", geesefs.secretAccessKey)
 	return fuseMount(target, geesefsCmd, args)