updated requirements

This commit is contained in:
tim
2024-07-26 23:34:09 -04:00
parent 9a0d0bc932
commit 497410340f
3 changed files with 19 additions and 13 deletions

View File

@@ -1,5 +1,8 @@
#!/bin/bash
SCRIPT_DIR="$(dirname -- "$( readlink -f -- "$0"; )";)"
CONF_DIR="$SCRIPT_DIR/../conf"
if [ "$1" == "" ]; then
echo 'usage: secret-push {config_name} [secret_name]'
exit 1
@@ -9,18 +12,18 @@ CONFIG=$1
shift
if [ "$1" != "" ]; then
KEY=backend-$1
KEY=backend-secret-$1
else
KEY=backend
KEY=backend-secret
fi
FILE="conf/dexorder-$CONFIG.toml"
FILE="$CONF_DIR/dexorder-$CONFIG.toml"
if [ ! -f "$FILE" ]; then
FILE="conf/$CONFIG/dexorder-$CONFIG.toml"
FILE="$CONF_DIR/$CONFIG/dexorder-$CONFIG.toml"
fi
if [ ! -f "$FILE" ]; then
echo Could not find config file for $1
echo Could not find config file for $CONFIG
exit 1;
fi