From b53247af2e73651bc052cf5b491fe1ea87378b1d Mon Sep 17 00:00:00 2001 From: afornerot Date: Tue, 3 Mar 2020 10:29:02 +0100 Subject: [PATCH] cron.sh en env prod --- src/ninegate-1.0/app/config/config.yml | 2 +- src/ninegate-1.0/scripts/ninegate-cron.sh | 2 +- .../src/Cadoles/CoreBundle/Command/data/core-init-01.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ninegate-1.0/app/config/config.yml b/src/ninegate-1.0/app/config/config.yml index 617dd93b..d02ffb2c 100644 --- a/src/ninegate-1.0/app/config/config.yml +++ b/src/ninegate-1.0/app/config/config.yml @@ -18,7 +18,7 @@ monolog: main: type: rotating_file path: '%kernel.logs_dir%/%kernel.environment%.log' - level: debug + level: error max_files: 10 framework: diff --git a/src/ninegate-1.0/scripts/ninegate-cron.sh b/src/ninegate-1.0/scripts/ninegate-cron.sh index d49ef031..dbbd907f 100755 --- a/src/ninegate-1.0/scripts/ninegate-cron.sh +++ b/src/ninegate-1.0/scripts/ninegate-cron.sh @@ -1,4 +1,4 @@ #!/bin/bash cd /var/www/html/ninegate -php bin/console Cron:Exec \ No newline at end of file +php bin/console Cron:Exec --env=prod \ No newline at end of file diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql index d864c2d9..24d46840 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql @@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES (-100, 'DRAAF', '130007107'); INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES -(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}DaOp1rZbdNu4Njbw+JpKmuufVKXN9s/5 +(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}sh/qcK9rVlrIFTJVhcolNLa3Ww0g4ZzK ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');