mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +02:00
added warning to reverse proxy if envs is not present
This commit is contained in:
parent
c39f4d4bfb
commit
93a80f0035
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user