From 19bfa4188217c71e7fd0b834170a0924a698ad23 Mon Sep 17 00:00:00 2001
From: Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr>
Date: Wed, 12 Oct 2022 09:31:59 +0200
Subject: [PATCH] install.sh comme celui de sygal

---
 install.sh | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/install.sh b/install.sh
index 32b1490..9ec9ff3 100755
--- a/install.sh
+++ b/install.sh
@@ -1,10 +1,15 @@
 #!/usr/bin/env bash
 
 #
-# This script runs required operations in order to set up the application.
+# Script d'installation des pré-requis de l'application.
 #
+# Usages :
+#   ./install.sh
+
+set -o errexit
 
 CURDIR=$(cd `dirname $0` && pwd)
+
 cd ${CURDIR}
 
 # Composer install
@@ -15,4 +20,8 @@ vendor/bin/doctrine-module orm:clear-cache:metadata
 vendor/bin/doctrine-module orm:clear-cache:result
 vendor/bin/doctrine-module orm:generate-proxies
 
-composer development-disable
+vendor/bin/laminas-development-mode disable
+
+# Création ou vidange des répertoires de cache
+mkdir -p data/cache && chmod -R 777 data/cache && rm -rf data/cache/*
+mkdir -p data/DoctrineModule/cache && chmod -R 777 data/DoctrineModule/cache && rm -rf data/DoctrineModule/cache/*
-- 
GitLab