Compare commits

..

No commits in common. "022091c8757021eaf812ad9fa0f53ea48596f64d" and "87ed09e21d34ce4e4586f5bfdfc4f684f98cd3f0" have entirely different histories.

4 changed files with 2 additions and 25 deletions

View file

@ -1,13 +0,0 @@
[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

View file

@ -1,10 +0,0 @@
[Unit]
Description=Timer for certwarden-deploy
[Timer]
Persistent=true
OnCalendar=Sat *-*-* 04:00:00
RandomizedDelaySec=2h
[Install]
WantedBy=timers.target

View file

@ -198,7 +198,7 @@ func handleCertificateAction(cert configuration.CertificateData) error {
sargs := strings.Split(action, " ")
cmd := exec.Command(sargs[0], sargs[1:]...)
cmd := exec.Command(sargs[0], sargs...)
err := cmd.Run()
return err
}

View file

@ -1,6 +1,6 @@
package constants
const Version = "0.1.1"
const Version = "0.1.0"
const CertificateApiPath = "/certwarden/api/v1/download/certificates/"
const ApiKeyHeaderName = "X-API-Key"
const UserAgent = "certwarden-deploy/" + Version + " +https://code.lila.network/adoralaura/certwarden-deploy"