Skip to content
Extraits de code Groupes Projets
Valider fef254e4 rédigé par okhin's avatar okhin :bicyclist:
Parcourir les fichiers

Update install.sh to manage home correctly

parent 1e7224a8
Branches
Étiquettes
1 requête de fusion!41Master
#!/bin/bash
# Ce script est utilisé pour paramétrer l'environnement du site
if [ -e "./app/env" ]
if [ 'x$PROD_HOME' -ne 'x' ]
then
source app/env
HOME=$PROD_HOME
else
HOME=/var/www/dons/
fi
cd /home/don/don
if [ -e "$HOME/app/env"]
then
source $HOME/app/env
fi
fi
cd $HOME
git reset --hard
git pull origin $CI_BUILD_REF_NAME
git checkout $CI_BUILD_REF_NAME
......@@ -16,7 +24,7 @@ composer install --no-dev
composer update
# Let's run the migrations
if [ -e "phinx.yml" ]
if [ -e "$HOME/phinx.yml" ]
then
case $CI_BUILD_REF_NAME in
master)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter