|
|
|
@ -8,6 +8,7 @@ import (
|
|
|
|
|
"io/ioutil" |
|
|
|
|
"regexp" |
|
|
|
|
"strings" |
|
|
|
|
"strconv" |
|
|
|
|
"os" |
|
|
|
|
"time" |
|
|
|
|
) |
|
|
|
@ -82,7 +83,7 @@ func main() {
|
|
|
|
|
} |
|
|
|
|
// SMTP port
|
|
|
|
|
if os.Getenv("SMTP_PORT") != "" { |
|
|
|
|
SMTP_PORT = os.Getenv("SMTP_PORT") |
|
|
|
|
SMTP_PORT,_ = strconv.Atoi(os.Getenv("SMTP_PORT")) |
|
|
|
|
} |
|
|
|
|
// SMTP user
|
|
|
|
|
if os.Getenv("SMTP_USER") != "" { |
|
|
|
@ -94,7 +95,7 @@ func main() {
|
|
|
|
|
} |
|
|
|
|
// SMTP TLS
|
|
|
|
|
if os.Getenv("SMTP_SECURE") != "" { |
|
|
|
|
SMTP_SECURE = os.Getenv("SMTP_SECURE") |
|
|
|
|
SMTP_SECURE,_ = strconv.ParseBool(os.Getenv("SMTP_SECURE")) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fmt.Println("Gancio Installer") |
|
|
|
|