Compare commits
2 commits
87ed09e21d
...
022091c875
Author | SHA1 | Date | |
---|---|---|---|
022091c875 | |||
0d4156a050 |
4 changed files with 25 additions and 2 deletions
13
examples/certwarden-deploy.service
Normal file
13
examples/certwarden-deploy.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=CertWarden Deployer binary
|
||||
Documentation=https://code.lila.network/adoralaura/certwarden-deploy
|
||||
|
||||
[Service]
|
||||
# uncomment if you want to use a different user than root
|
||||
# User=certwarden-deploy
|
||||
# Group=certwarden-deploy
|
||||
ExecStart=/usr/local/bin/certwarden-deploy
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
10
examples/certwarden-deploy.timer
Normal file
10
examples/certwarden-deploy.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Timer for certwarden-deploy
|
||||
|
||||
[Timer]
|
||||
Persistent=true
|
||||
OnCalendar=Sat *-*-* 04:00:00
|
||||
RandomizedDelaySec=2h
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -198,7 +198,7 @@ func handleCertificateAction(cert configuration.CertificateData) error {
|
|||
|
||||
sargs := strings.Split(action, " ")
|
||||
|
||||
cmd := exec.Command(sargs[0], sargs...)
|
||||
cmd := exec.Command(sargs[0], sargs[1:]...)
|
||||
err := cmd.Run()
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package constants
|
||||
|
||||
const Version = "0.1.0"
|
||||
const Version = "0.1.1"
|
||||
const CertificateApiPath = "/certwarden/api/v1/download/certificates/"
|
||||
const ApiKeyHeaderName = "X-API-Key"
|
||||
const UserAgent = "certwarden-deploy/" + Version + " +https://code.lila.network/adoralaura/certwarden-deploy"
|
||||
|
|
Loading…
Reference in a new issue