Compare commits
No commits in common. "9f99fe2c3f5366950a3ff9b3f28cc9441c3398fd" and "2d2d8f093888b8ffffb635fcb652beb9a079544f" have entirely different histories.
9f99fe2c3f
...
2d2d8f0938
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
ninegate_synceportail=$(CreoleGet ninegate_synceportail non)
|
||||||
moderegistration=$(CreoleGet ninegate_moderegistration none)
|
moderegistration=$(CreoleGet ninegate_moderegistration none)
|
||||||
labelsniveau01=$(CreoleGet ninegate_niveau01labels non)
|
labelsniveau01=$(CreoleGet ninegate_niveau01labels non)
|
||||||
iconniveau01=$(CreoleGet ninegate_niveau01icon non)
|
iconniveau01=$(CreoleGet ninegate_niveau01icon non)
|
||||||
@ -12,6 +13,7 @@ websocket_url=$(CreoleGet adresse_ip_eth0 non)
|
|||||||
websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non)
|
websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non)
|
||||||
|
|
||||||
www_dir="$container_path_web/var/www/html"
|
www_dir="$container_path_web/var/www/html"
|
||||||
|
eportail_dir="$www_dir/eportail"
|
||||||
|
|
||||||
# Récuper les composer associés à la version de php installé
|
# Récuper les composer associés à la version de php installé
|
||||||
version72=`php -r 'echo version_compare(phpversion(), "7.2.0", ">=");'`
|
version72=`php -r 'echo version_compare(phpversion(), "7.2.0", ">=");'`
|
||||||
@ -29,21 +31,18 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Installation des dépendances composer
|
# Installation des dépendances composer
|
||||||
echo COMPOSER = Install
|
composer install
|
||||||
composer install --quiet
|
|
||||||
rm -f /var/www/html/ninegate/var/logs/dev.log
|
rm -f /var/www/html/ninegate/var/logs/dev.log
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
./perm.sh www-data
|
./perm.sh www-data
|
||||||
|
|
||||||
# Nettoyage du cache
|
# Nettoyage du cache
|
||||||
echo
|
rm /var/www/html/ninegate/var/cache -rf
|
||||||
echo CACHE = Refresh
|
php bin/console cache:clear --env=prod --no-debug
|
||||||
rm /var/www/html/ninegate/var/cache -rf > /dev/null
|
|
||||||
php bin/console cache:clear --env=prod --no-debug --quiet
|
|
||||||
|
|
||||||
# Migration si nécessaire du schéma de la base
|
# Migration si nécessaire du schéma de la base
|
||||||
php bin/console doctrine:schema:update --force --env=prod --no-debug --quiet
|
php bin/console doctrine:schema:update --force --env=prod --no-debug
|
||||||
|
|
||||||
# Insertion data de base
|
# Insertion data de base
|
||||||
php bin/console Core:InitData --env=prod
|
php bin/console Core:InitData --env=prod
|
||||||
@ -54,20 +53,27 @@ php bin/console Portal:InitData --env=prod
|
|||||||
php bin/console Core:Script --env=prod
|
php bin/console Core:Script --env=prod
|
||||||
|
|
||||||
# Generation des assets
|
# Generation des assets
|
||||||
echo ASSET = Dump
|
bin/console assetic:dump --env=prod
|
||||||
bin/console assetic:dump --env=prod --quiet
|
|
||||||
|
|
||||||
# Copie des polices du projet dans le rep web
|
# Copie des polices du projet dans le rep web
|
||||||
cp -rf src/Cadoles/CoreBundle/Resources/public/fonts web/
|
cp -rf src/Cadoles/CoreBundle/Resources/public/fonts web/
|
||||||
|
|
||||||
|
# Pointer le repertoire des avatar d'eportail sur celui de draaf
|
||||||
|
# Paramétrage eportail
|
||||||
|
if [[ "$ninegate_synceportail" = 'oui' ]]
|
||||||
|
then
|
||||||
|
if [[ ! -L /var/www/html/eportail/local/images/avatar ]]
|
||||||
|
then
|
||||||
|
rm -rf /var/www/html/eportail/local/images/avatar
|
||||||
|
ln -s /var/www/html/ninegate/web/uploads/avatar /var/www/html/eportail/local/images/avatar
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
./perm.sh www-data
|
./perm.sh www-data
|
||||||
|
|
||||||
# Server Websocket
|
# Server Websocket
|
||||||
if [[ "$ninegate_websocket" = 'oui' ]]
|
if [[ "$ninegate_websocket" = 'oui' ]]
|
||||||
then
|
then
|
||||||
echo
|
|
||||||
/var/www/html/ninegate/scripts/ninegate-websocket.sh
|
/var/www/html/ninegate/scripts/ninegate-websocket.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
|
Loading…
x
Reference in New Issue
Block a user