From 315c9caa8514d793990ffbaf2a6bdccf7db10b0f Mon Sep 17 00:00:00 2001 From: untypequicode Date: Wed, 30 Oct 2024 02:10:56 +0100 Subject: [PATCH] =?UTF-8?q?Possibilit=C3=A9=20de=20ne=20pas=20recompiler?= =?UTF-8?q?=20strapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-strapi.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-strapi.sh b/install-strapi.sh index dbd7f4e..11fd126 100755 --- a/install-strapi.sh +++ b/install-strapi.sh @@ -5,7 +5,14 @@ if command -v docker &> /dev/null; then if [[ $response =~ ^[Oo]$ ]]; then git clone https://ganesh.turing.untypequicode.fr/untypequicode/strapi.git /home/$USER/docker/strapi cd /home/$USER/docker/strapi - docker compose build + read -p "Voulez-vous installer l'image déjà compilée ? (o/n) " response + if [[ $response =~ ^[Oo]$ ]]; then + curl -o strapi.tar https://ganesh.turing.untypequicode.fr/untypequicode/strapi/raw/branch/main/strapi.tar + docker load -i strapi.tar + rm strapi.tar + else + docker compose build + fi docker compose up -d echo "Strapi a été installé dans le répertoire docker" else