Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
fef254e4
Commit
fef254e4
authored
Nov 08, 2018
by
okhin
🚴
Browse files
Update install.sh to manage home correctly
parent
1e7224a8
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
ci/install.sh
View file @
fef254e4
#!/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
if
[
-e
"
$HOME
/app/env"
]
then
source
$HOME
/app/env
fi
fi
cd
/home/don/don
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment