usage fix (agent was renamed by intellij to session)

Now using embedded timezone database by go so setting the TZ variable will work.
This commit is contained in:
Erik Brakkee 2024-07-30 23:48:52 +02:00
parent 9a3618f06b
commit 01c9cdd60a
4 changed files with 7 additions and 2 deletions

View File

@ -15,6 +15,7 @@ import (
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"
_ "time/tzdata"
) )
func parsePublicId(path string) (publicId string, _ error) { func parsePublicId(path string) (publicId string, _ error) {
@ -53,6 +54,7 @@ func printHelp(msg string) {
} }
func main() { func main() {
downloadDir := "../static" downloadDir := "../static"
args := os.Args[1:] args := os.Args[1:]

View File

@ -10,3 +10,4 @@ services:
environment: environment:
CONVERGE_USERNAME: abc CONVERGE_USERNAME: abc
CONVERGE_PASSWORD: "123" CONVERGE_PASSWORD: "123"
TZ: "Japan"

View File

@ -27,5 +27,7 @@ spec:
- name: CONVERGE_PASSWORD - name: CONVERGE_PASSWORD
# change this password in your final deployment # change this password in your final deployment
value: "abc123" value: "abc123"
- name: TZ
value: Europe/Amsterdam

View File

@ -12,13 +12,13 @@ templ Usage(secure string, host string, username string) {
</p> </p>
<pre>{` <pre>{`
# linux # linux
`}curl http{secure}://{host}/static/session > session{` `}curl http{secure}://{host}/static/agent > agent{`
chmod 755 agent chmod 755 agent
`}./agent --id ID ws{secure}://{host}{` `}./agent --id ID ws{secure}://{host}{`
rm -f agent rm -f agent
# windows # windows
`}curl http{secure}://{host}/static/session.exe > session.exe{` `}curl http{secure}://{host}/static/agent.exe > agent.exe{`
`}agent --id ID ws{secure}://{host}{` `}agent --id ID ws{secure}://{host}{`
del agent.exe del agent.exe
`}</pre> `}</pre>