From 2c68445a4b101c6c36b01c780954d7ccac175107 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Tue, 28 Aug 2018 14:53:05 +0200 Subject: [PATCH] install script up --- .../views/logged/previsionnel.html.twig | 2 ++ install.sh | 23 ++++++++++++++----- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/app/Resources/views/logged/previsionnel.html.twig b/app/Resources/views/logged/previsionnel.html.twig index 159a5c68..2899a554 100755 --- a/app/Resources/views/logged/previsionnel.html.twig +++ b/app/Resources/views/logged/previsionnel.html.twig @@ -178,6 +178,8 @@

Simulation sur {{config.lines}} mois

+
+
Ce sera la dèche dans {{config.monthsBeforeNoMoney}} mois
diff --git a/install.sh b/install.sh index 0cf8cc77..a3f4149a 100755 --- a/install.sh +++ b/install.sh @@ -4,19 +4,30 @@ echo "################################"; echo "start INSTALL of symfony project"; echo "################################"; echo "checking requirements"; -composer --version -yarn --version -acl --varsion -echo "installing symfony project for ubuntu environnement"; -composer install && yarn install; -yarn run encore dev +sudo apt install acl -y echo "fix file permissions"; HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1) sudo setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var sudo setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX var +sudo npm i -g yarn + +composer --version +yarn --version +acl --varsion + +php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" +php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" +php composer-setup.php +php -r "unlink('composer-setup.php');" + + +echo "installing symfony project for ubuntu environnement"; +composer install && yarn install; +yarn run encore dev + echo "update database"; php bin/console doctrine:schema:update --dump-sql php bin/console doctrine:schema:update --force