EVO - update-all.sh : remove FO part in MonarcAppBO
parent
b1e6d50f27
commit
ef26f7e811
|
@ -8,10 +8,21 @@ pull_if_exists() {
|
|||
fi
|
||||
}
|
||||
|
||||
|
||||
git pull
|
||||
|
||||
php composer.phar update -o
|
||||
composercommand=`command -v composer`
|
||||
if [[ -z "$composercommand" ]]; then
|
||||
if [[ ! -f "composer.phar" ]]; then
|
||||
# https://getcomposer.org/download/
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||
php composer-setup.php
|
||||
php -r "unlink('composer-setup.php');"
|
||||
fi
|
||||
php composer.phar update -o
|
||||
else
|
||||
$composercommand update -o
|
||||
fi
|
||||
|
||||
currentPath=`pwd`
|
||||
pathCore="module/MonarcCore"
|
||||
|
@ -26,12 +37,6 @@ if [ -d $pathBO ]; then
|
|||
else
|
||||
pathBO="vendor/monarc/backoffice"
|
||||
fi
|
||||
pathFO="module/MonarcFO"
|
||||
if [ -d $pathFO ]; then
|
||||
pull_if_exists $pathFO
|
||||
else
|
||||
pathFO="vendor/monarc/frontoffice"
|
||||
fi
|
||||
|
||||
if [[ -d node_modules && -d node_modules/ng_anr ]]; then
|
||||
if [[ -d node_modules/ng_anr/.git ]]; then
|
||||
|
@ -67,17 +72,6 @@ if [ -d $pathBO ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ -d $pathFO ]; then
|
||||
php ./vendor/robmorgan/phinx/bin/phinx migrate -c ./$pathFO/migrations/phinx.php
|
||||
|
||||
if [ -d "$pathFO/hooks" ]; then
|
||||
cd $pathFO/.git/hooks
|
||||
ln -s ../../hooks/pre-commit.sh pre-commit 2>/dev/null
|
||||
chmod u+x pre-commit
|
||||
cd $currentPath
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d node_modules/ng_backoffice ]; then
|
||||
cd node_modules/ng_backoffice
|
||||
npm install
|
||||
|
|
Loading…
Reference in New Issue