removed upgrade from update script

This commit is contained in:
Snogard 2025-03-06 16:51:37 +01:00
parent 05d5edbaf2
commit 83a4faf473

View File

@ -6,8 +6,8 @@ source /opt/kaido/src/libs/bash/lib.sh
# variables
root="/opt/kaido"
workdir="$HOME/.cache/kaido/update"
confdir="$KAIDO_CONFIG_FOLDER"
sysConfigDir="/etc/kaido"
configDir="$KAIDO_CONFIG_FOLDER"
# ----------
# kaido repository
@ -15,8 +15,18 @@ cd $root
sudo git reset --hard
sudo git pull
#TODO: remove in the future
kaido upgrade
if [ -d "$sysConfigDir" ]; then
cd /etc/kadio
sudo git reset --hard
sugo git pull
fi
if [ ! "$configDir" = "$sysConfigDir" ]; then
cd $configDir
git reset --hard
git pull
fi
echo "WARNING: the update process is being split into two commands.
kaido update: to download the latest container defitions and kaido versions