refactore: refactoring of code

This commit is contained in:
2024-01-19 14:29:37 +01:00
parent aaad8a010c
commit 2ae78fec57
7 changed files with 13 additions and 9 deletions

View File

@@ -44,6 +44,8 @@ func MountS3Storage(s3Path string) {
}
//Change file permission
utils.ChangePermission(s3fsPasswdFile, 0600)
//Mount object storage
utils.Info("Mounting Object storage in", s3MountPath)
if isEmpty, _ := utils.IsDirEmpty(s3MountPath); isEmpty {
cmd := exec.Command("s3fs", bucketName, s3MountPath,