Add 'secrets' command to startup script

This commit is contained in:
Vikram Rangnekar
2020-03-03 19:44:14 +05:30
parent 8b6c562ac1
commit 2b0a798faa
2 changed files with 11 additions and 5 deletions

View File

@ -1,7 +1,13 @@
#!/bin/sh
if [ $1 = "secrets" ]
then
sops --config ./config "${@:2}"
exit 0
fi
if test -f "./config/$SECRETS_FILE"
then
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
else
$@
fi