super-graph/internal/scripts/start.sh

13 lines
205 B
Bash
Raw Normal View History

#!/bin/sh
if [ $1 = "secrets" ]
then
2020-03-04 11:09:53 +01:00
./sops --config ./config "${@:2}"
exit 0
fi
if test -f "./config/$SECRETS_FILE"
then
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
else
$@
fi