diff --git a/cmd/ptah-agent/ptah-agent.go b/cmd/ptah-agent/ptah-agent.go index 9fe25ff..30e275f 100644 --- a/cmd/ptah-agent/ptah-agent.go +++ b/cmd/ptah-agent/ptah-agent.go @@ -14,9 +14,9 @@ var version string = "dev" func main() { baseUrl := os.Getenv("PTAH_BASE_URL") if baseUrl == "" { - log.Println("PTAH_BASE_URL is not set, using http://localhost:8000") + log.Println("PTAH_BASE_URL is not set, using https://app.ptah.sh") - baseUrl = "http://localhost:8000" + baseUrl = "https://app.ptah.sh" } baseUrl = strings.Trim(baseUrl, "/") @@ -24,9 +24,7 @@ func main() { ptahToken := os.Getenv("PTAH_TOKEN") if ptahToken == "" { - log.Println("PTAH_TOKEN is not set, using localhost-ptah-token") - - ptahToken = "localhost-ptah-token" + log.Fatalln("PTAH_TOKEN is not set") } agent := ptahAgent.New(version, baseUrl, ptahToken) diff --git a/install.sh b/install.sh index afffe99..e76b230 100644 --- a/install.sh +++ b/install.sh @@ -156,6 +156,8 @@ mkdir -p \$HOME/ptah-agent/versions/0.0.0 curl -L https://github.com/ptah-sh/ptah-agent/releases/latest/download/ptah-agent-linux-x86_64 -o \$SEED_VERSION/ptah-agent +chmod +x \$SEED_VERSION/ptah-agent + ln -nsf \$SEED_VERSION/ptah-agent \$HOME/ptah-agent/current EOF