#!/bin/bash ninegate_synceportail=$(CreoleGet ninegate_synceportail non) moderegistration=$(CreoleGet ninegate_moderegistration none) labelsniveau01=$(CreoleGet ninegate_niveau01labels non) iconniveau01=$(CreoleGet ninegate_niveau01icon non) affniveau02=$(CreoleGet ninegate_niveau02view non) labelsniveau02=$(CreoleGet ninegate_niveau02labels non) iconniveau02=$(CreoleGet ninegate_niveau02icon non) weburl=$(CreoleGet web_url non) ninegate_websocket=$(CreoleGet ninegate_activate_websocket non) 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" # Installation des dépendances composer composer install # 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 # Migration si nécessaire du schéma de la base php bin/console doctrine:schema:update --force --env=prod --no-debug # Insertion data de base php bin/console Core:InitData php bin/console Cron:InitData php bin/console Portal:InitData # Generation des assets bin/console --env=dev assetic:dump # 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 /var/www/html/ninegate/scripts/ninegate-websocket.sh fi