GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
git checkout "stable-$STABLE_VERSION"|| die '[ERROR] Unable to checkout to stable version'
updateSubmodules
version=`git branch |grep "^*"|cut -c3-`
version_stable=`cat ../stable`
if["$version"=="stable-"$STABLE_VERSION];then
successMessage
else
errorMessage
fi
```
script install-util.sh
```
#!/bin/bash
function nextStep(){
echo""
echo"==== $1 ===="
echo""
}
function die(){
echo$1
exit 1
}
# Pré-requis
function executeCommand(){
cmd=$1
echo"$cmd"
eval$cmd|| die $2> /dev/null 2>&1
echo"done"
echo""
}
## Mettre votre site en maintenance
function printError(){
errors=$errors$'\n'$1
}
Vous pouvez mettre votre site en maintenance avant de commencer toute opération: dans l'interface d'administration sur la page d'accueil il y a un lien "rendre le site indisponible". À la fin de l'opération, pensez à cliquer sur "remettre le site en ligne".
function forceExecuteCommand(){
cmd=$1
echo"$cmd"
eval$cmd|| printError $2> /dev/null 2>&1
echo"done"
echo""
}
## Sauvegarder votre site
function printErrors(){
echo$errors
}
Pensez à faire une sauvegarde de votre base de données ainsi que de votre dossier de sources. En effet, si la base de données est impactée dans la mise à jour il est fortement déconseillé d'essayer de "downgrader" après application des patchs. Si vous constatez un problème suite à la mise à jour, nous vous conseillons de réinjecter votre dump de base de données et de faire un retour arrière sur les sources.
executeCommand "cd $BRANCH; git reset --hard HEAD; ""error on reset"
else
nextStep "Clone $BRANCH"
executeCommand "git clone -b $BRANCH git@git.afi-sa.fr:afi/opacce $BRANCH; cd $BRANCH""Unable to clone"
fi
nextStep "Switch to version $BRANCH"
executeCommand 'git fetch -t --all''[ERROR] Unable to fetch'
updateSubmodules
}
function updateSubmodules(){
if[-d afi ];then
nextStep "Update proprietary addons"
executeCommand "cd afi; git reset --hard HEAD;git pull; cd ..""Unable to pull "
else
nextStep "Clone proprietary addons"
executeCommand "git clone git@git.afi-sa.fr:afi/opacpriv afi""Unable to clone"
fi
pwd
nextStep "Install flash components"
executeCommand "cp -rf afi/public/opacpriv/flash public/opac/flash""Cant copy in public/opac/flash"
nextStep "Update submodules"
executeCommand "git submodule init && sh update.sh""Can't update submodules"
nextStep "Set permissions on temp folder"
forceExecuteCommand "chmod -R 777 temp"
nextStep "Check install"
}
function successMessage(){
echo"[DONE]"
echo"[IF NEEDED] copy and configure index.php,config.ini,cosmogramme/config.php"
echo"Enjoy :)"
}
function errorMessage(){
local version=$1
echo"[ERROR] wrong version : $version"
}
Lorsqu'une version est publiée par l'équipe Bokeh, elle est identifiable par un tag: http://git.afi-sa.fr/afi/opacce/tags
Les apports des versions sont consignés dans le fichier VERSIONS de la racine du projet: http://git.afi-sa.fr/afi/opacce/blob/master/VERSIONS Les dernières versions sont complétées par une page dans le wiki qui apporte un éclairage plus fonctionnel aux ajouts des développements: wiki.bokeh-library-portal.org/index.php/Category:Notes_de_version.