Changement du système de récupération de l'image de strapi et du repo

This commit is contained in:
2024-10-30 02:46:25 +01:00
parent 49cde69b85
commit ae81a146df

View File

@@ -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