chore: refactoring of code
This commit is contained in:
2
build.sh
2
build.sh
@@ -11,4 +11,4 @@ CGO_ENABLED=0 GOOS=linux go build
|
||||
|
||||
docker build -f docker/Dockerfile -t jkaninda/pg-bkup:$tag .
|
||||
|
||||
docker compose up -d --force-recreate
|
||||
#docker compose up -d --force-recreate
|
||||
2
main.go
2
main.go
@@ -323,7 +323,7 @@ func s3Mount() {
|
||||
}
|
||||
//Change file permission
|
||||
utils.ChangePermission(s3fsPasswdFile, 0600)
|
||||
utils.Info("Mounting Object storage in", s3MountPath)
|
||||
utils.Info("Mounting Object storage in ", s3MountPath)
|
||||
if isEmpty, _ := utils.IsDirEmpty(s3MountPath); isEmpty {
|
||||
cmd := exec.Command("s3fs", bucketName, s3MountPath,
|
||||
"-o", "passwd_file="+s3fsPasswdFile,
|
||||
|
||||
Reference in New Issue
Block a user