mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-08-20 10:50:06 +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
|
# variables
|
||||||
root="/opt/kaido"
|
root="/opt/kaido"
|
||||||
workdir="$HOME/.cache/kaido/update"
|
sysConfigDir="/etc/kaido"
|
||||||
confdir="$KAIDO_CONFIG_FOLDER"
|
configDir="$KAIDO_CONFIG_FOLDER"
|
||||||
# ----------
|
# ----------
|
||||||
|
|
||||||
# kaido repository
|
# kaido repository
|
||||||
@ -15,8 +15,18 @@ cd $root
|
|||||||
sudo git reset --hard
|
sudo git reset --hard
|
||||||
sudo git pull
|
sudo git pull
|
||||||
|
|
||||||
#TODO: remove in the future
|
if [ -d "$sysConfigDir" ]; then
|
||||||
kaido upgrade
|
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.
|
echo "WARNING: the update process is being split into two commands.
|
||||||
kaido update: to download the latest container defitions and kaido versions
|
kaido update: to download the latest container defitions and kaido versions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user