updates
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
||||||
echo $now
|
echo $now
|
||||||
echo "build commences"
|
echo "build commences"
|
||||||
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o ccsecrets
|
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
||||||
echo "build complete"
|
echo "build complete"
|
||||||
sha256sum ccsecrets > ccsecrets_checksum.txt
|
sha256sum smt > smt_checksum.txt
|
||||||
ls -lah
|
ls -lah
|
@@ -24,4 +24,6 @@ steps:
|
|||||||
PLUGIN_VERIFY: false
|
PLUGIN_VERIFY: false
|
||||||
PLUGIN_CHMOD: false
|
PLUGIN_CHMOD: false
|
||||||
#PLUGIN_DEBUG: false
|
#PLUGIN_DEBUG: false
|
||||||
PLUGIN_INCLUDE: ^ccsecrets.*$
|
PLUGIN_INCLUDE: ^smt$
|
||||||
|
PLUGIN_INCLUDE: ^smt_checksum.txt$
|
||||||
|
PLUGIN_EXCLUDE: ^\.git/$,^\uim2/$
|
@@ -1,4 +1,4 @@
|
|||||||
# CC Secrets
|
# Secrets Management Tool (SMT)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
@@ -32,10 +32,10 @@ If the TLS certificate and key files cannot be located in the specified location
|
|||||||
|
|
||||||
## Systemd script
|
## Systemd script
|
||||||
|
|
||||||
Create/update the systemd service definition at /etc/systemd/system/ccsecrets.service and then run systemctl daemon-reload
|
Create/update the systemd service definition at /etc/systemd/system/smt.service and then run systemctl daemon-reload
|
||||||
```
|
```
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=CC Secrets Service
|
Description=Secrets Management Tool
|
||||||
After=network.target
|
After=network.target
|
||||||
#StartLimitIntervalSec=0
|
#StartLimitIntervalSec=0
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ Type=simple
|
|||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
User=root
|
User=root
|
||||||
ExecStart=/srv/ccsecrets/ccsecrets
|
ExecStart=/srv/smt/smt
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Reference in New Issue
Block a user