mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-06-25 02:13:00 +02:00
removed upgrade from update script
This commit is contained in:
parent
05d5edbaf2
commit
83a4faf473
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user