fixed typo

This commit is contained in:
Snogard 2023-07-22 14:54:59 +02:00
parent 78d09bb06f
commit 82824fdc09
3 changed files with 6 additions and 4 deletions

View File

@ -15,8 +15,8 @@ dstDataPath=/mnt/storage/containers/$containerName/data
externalPort=10111
internalPort=25600
if [ -f "/ect/kaido/containers/$containerName/envs.sh" ]; then
source /ect/kaido/containers/$containerName/envs.sh
if [ -f "/etc/kaido/containers/$containerName/envs.sh" ]; then
source /etc/kaido/containers/$containerName/envs.sh
fi

View File

@ -14,7 +14,9 @@ domain="example.com"
subdomains=""
email="example@example.com"
source /ect/kaido/containers/$containerName/envs.sh
if [ -f "/etc/kaido/containers/$containerName/envs.sh" ]; then
source /etc/kaido/containers/$containerName/envs.sh
fi
# pre install
create_folder $dstConfigPath

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" ) ) || \
[ ! $(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