chore: adaptation du script d'upgrade

This commit is contained in:
Kazhnuz 2020-12-25 23:28:28 +01:00
parent ddf02a36d9
commit 4972b93f18
2 changed files with 39 additions and 9 deletions

View file

@ -21,3 +21,17 @@ function install_site() {
cd ../ cd ../
echo "" echo ""
} }
## update_site
## Update a site inside kobold.city
## S1: the folder of the site
function update_site() {
echo "# $1"
cd $1
echo "## Pull"
git pull
echo "## Compilation"
sh generate.sh
cd ../
echo ""
}

View file

@ -1,9 +1,25 @@
cd hosted/rulebook ################################################################################
git pull # KOBOLD CITY - Mise a Jour
sh generate.sh # Mise a jour des sites présents
cd ../kazhnuz.space ################################################################################
git pull source functions.sh
sh generate.sh
cd ../kobold.city echo "KOBOLD CITY - Démarage du scrit de MaJ"
git pull
sh generate.sh echo ""
# 1 - Deplacement vers le dossier hosted
cd hosted
echo ""
# 2 - MaJ des différents sites
update_site kobold.city https://git.kobold.cafe/kobold-city/kobold.city
update_site rulebook https://git.kobold.cafe/jdr/rulebook
update_site kazhnuz.space https://git.kobold.cafe/kobold-city/kazhnuz.space
# On sort du dossier temporaire pour la fin du script
cd ../
# Fin du script
echo "Fin du script"