fixed update paths

This commit is contained in:
Snogard 2023-07-06 14:30:37 +02:00
parent f613626f67
commit 9c6490526f

View File

@ -1,11 +1,12 @@
#!/bin/bash
# variables
root=/opt/kaido
workdir=$HOME/.cache/kaido
confdir=/etc/kaido
configureScript=/opt/kaido/src/commands/configure.sh
installScript=/opt/kaido/src/commands/install.sh
buildScript=/opt/kaido/src/commands/build.sh
configureScript=$root/src/commands/configure.sh
installScript=$root/src/commands/install.sh
buildScript=$root/src/commands/build.sh
updateConfig=$confdir/update.conf
# ----------
@ -34,7 +35,7 @@ buildList=$(cat ${updateConfig} | grep -i build-)
# -----------------------
echo -e "Updating repository\n"
cd /home-server
cd $root
sudo git reset --hard
sudo git pull
@ -42,14 +43,14 @@ echo ""
# executables
# echo -e "Configuring script permissions\n"
# sudo chmod +x -R /home-server/scripts
# sudo chmod +x -R /home-server/installation
# sudo chmod +x -R /home-server/configuration/container-units
# sudo chmod +x -R $root/scripts
# sudo chmod +x -R $root/installation
# sudo chmod +x -R $root/configuration/container-units
# echo -e "Permissions added\n"
# protected
#sudo chmod 600 -R /home-server/reverse-proxy-server/dns-conf
#sudo chmod 600 -R $root/reverse-proxy-server/dns-conf
# auto update of server and configs