diff --git a/src/ninegate-1.0/scripts/ninegate-postservice-01.sh b/src/ninegate-1.0/scripts/ninegate-postservice-01.sh index 9a7b0c0a..ec4ef094 100755 --- a/src/ninegate-1.0/scripts/ninegate-postservice-01.sh +++ b/src/ninegate-1.0/scripts/ninegate-postservice-01.sh @@ -1,6 +1,5 @@ #!/bin/bash -ninegate_synceportail=$(CreoleGet ninegate_synceportail non) moderegistration=$(CreoleGet ninegate_moderegistration none) labelsniveau01=$(CreoleGet ninegate_niveau01labels non) iconniveau01=$(CreoleGet ninegate_niveau01icon non) @@ -13,7 +12,6 @@ websocket_url=$(CreoleGet adresse_ip_eth0 non) websocket_portinterne=$(CreoleGet ninegate_websocket_portinterne non) www_dir="$container_path_web/var/www/html" -eportail_dir="$www_dir/eportail" # Récuper les composer associés à la version de php installé version72=`php -r 'echo version_compare(phpversion(), "7.2.0", ">=");'` @@ -31,18 +29,21 @@ else fi # Installation des dépendances composer -composer install +echo COMPOSER = Install +composer install --quiet rm -f /var/www/html/ninegate/var/logs/dev.log # Permissions ./perm.sh www-data # Nettoyage du cache -rm /var/www/html/ninegate/var/cache -rf -php bin/console cache:clear --env=prod --no-debug +echo +echo CACHE = Refresh +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 -php bin/console doctrine:schema:update --force --env=prod --no-debug +php bin/console doctrine:schema:update --force --env=prod --no-debug --quiet # Insertion data de base php bin/console Core:InitData --env=prod @@ -53,27 +54,20 @@ php bin/console Portal:InitData --env=prod php bin/console Core:Script --env=prod # Generation des assets -bin/console assetic:dump --env=prod +echo ASSET = Dump +bin/console assetic:dump --env=prod --quiet # Copie des polices du projet dans le rep 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 ./perm.sh www-data # Server Websocket if [[ "$ninegate_websocket" = 'oui' ]] then + echo /var/www/html/ninegate/scripts/ninegate-websocket.sh -fi \ No newline at end of file +fi + +echo \ No newline at end of file