fix: Fix AWS S3 and SSH backup in scheduled mode on Docker and Docker Swarm mode

This commit is contained in:
jkaninda committed 2024-08-04 11:30:03 +02:00
1 parent e4ca97b99e
commit 1e06600c43
7 files changed
+48 -21

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ func Done(msg string, args ...any) {
}
}
// Fatal logs an error message and exits the program
func Fatal(msg string, args ...any) {
// Fatal logs an error message and exits the program.
formattedMessage := fmt.Sprintf(msg, args...)
+1 -2
View File
@@ -42,8 +42,7 @@ func CreateSession() (*session.Session, error) {
err = CheckEnvVars(awsVars)
if err != nil {
Error(fmt.Sprintf("Error checking environment variables\n: %s", err))
os.Exit(1)
Fatal("Error checking environment variables\n: %s", err)
}
// S3 Config
s3Config := &aws.Config{