chore: adaptation du script d'upgrade
This commit is contained in:
parent
ddf02a36d9
commit
4972b93f18
2 changed files with 39 additions and 9 deletions
14
functions.sh
14
functions.sh
|
@ -21,3 +21,17 @@ function install_site() {
|
|||
cd ../
|
||||
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 ""
|
||||
}
|
||||
|
|
34
update.sh
34
update.sh
|
@ -1,9 +1,25 @@
|
|||
cd hosted/rulebook
|
||||
git pull
|
||||
sh generate.sh
|
||||
cd ../kazhnuz.space
|
||||
git pull
|
||||
sh generate.sh
|
||||
cd ../kobold.city
|
||||
git pull
|
||||
sh generate.sh
|
||||
################################################################################
|
||||
# KOBOLD CITY - Mise a Jour
|
||||
# Mise a jour des sites présents
|
||||
################################################################################
|
||||
source functions.sh
|
||||
|
||||
echo "KOBOLD CITY - Démarage du scrit de MaJ"
|
||||
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue