Browse Source

Fix: String to Int and Bool

master
Siroco 8 months ago
parent
commit
4fe4f1ad8f
Signed by: siroco
GPG Key ID: 1324098302A514B0
  1. 5
      installer/main.go

5
installer/main.go

@ -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")

Loading…
Cancel
Save