added warning to reverse proxy if envs is not present

This commit is contained in:
Snogard 2023-07-22 16:38:00 +02:00
parent c39f4d4bfb
commit 93a80f0035
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@ email="example@example.com"
if [ -f "/etc/kaido/containers/$containerName/envs.sh" ]; then
source /etc/kaido/containers/$containerName/envs.sh
else
echo "You must configure this container with this file: /etc/kaido/containers/$containerName/envs.sh"
exit 1
fi
# pre install

View File

@ -105,7 +105,7 @@ for val in $installList; do
# TODO support parameters
if $(git -C "$root" diff --name-only $previusCommit $currentCommit src/commands/install | grep -qi $name) || \
( [ -f "$confdir/containers/$name/envs.sh" ] && $(git -C "$confdir" diff --name-only $previusCommit_config $currentCommit_config "$confdir/containers/$name/envs.sh" | grep -qi "envs\.sh" ) ) || \
( [ -d "$confdir/containers/$name/secrets"] && [ ! $(git -C "$confdir" diff --name-only $previusCommit_config $currentCommit_config "$confdir/containers/$name/secrets") -z ] ) ; then
( [ -d "$confdir/containers/$name/secrets" ] && [ ! $(git -C "$confdir" diff --name-only $previusCommit_config $currentCommit_config "$confdir/containers/$name/secrets") -z ] ) ; then
echo -e "Updating ${name} installation\n"
$installScript $name
fi