diff --git a/install-strapi.sh b/install-strapi.sh index 4b2e5ec..ddd6007 100755 --- a/install-strapi.sh +++ b/install-strapi.sh @@ -3,11 +3,19 @@ if command -v docker &> /dev/null; then if ! [ -d "/home/$USER/docker/strapi" ]; then read -p "Voulez-vous installer strapi dans le répertoire docker ? (o/n) " response if [[ $response =~ ^[Oo]$ ]]; then - git clone https://ganesh.turing.untypequicode.fr/untypequicode/strapi.git /home/$USER/docker/strapi - cd /home/$USER/docker/strapi + cd /home/$USER/docker + curl -o strapi.zip https://ganesh.turing.untypequicode.fr/untypequicode/strapi/archive/v0.1.zip + if command -v unzip &> /dev/null; then + unzip strapi.zip + else + apt-get install unzip + unzip strapi.zip + fi + rm strapi.zip + cd strapi 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/script-vps/raw/branch/main/strapi.tar + curl -O https://ganesh.turing.untypequicode.fr/untypequicode/script-vps/raw/branch/main/strapi.tar docker load -i strapi.tar rm strapi.tar else