2020-03-03 13:45:47 +05:30
|
|
|
#!/bin/sh
|
2020-03-03 19:44:14 +05:30
|
|
|
if [ $1 = "secrets" ]
|
|
|
|
then
|
2020-03-04 15:39:53 +05:30
|
|
|
./sops --config ./config "${@:2}"
|
2020-03-03 19:44:14 +05:30
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-03-03 13:45:47 +05:30
|
|
|
if test -f "./config/$SECRETS_FILE"
|
|
|
|
then
|
2020-03-03 19:44:14 +05:30
|
|
|
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
|
2020-03-03 13:45:47 +05:30
|
|
|
else
|
|
|
|
$@
|
|
|
|
fi
|