Rectification du système de réponse pour o/n
This commit is contained in:
5
install-strapi.sh
Normal file → Executable file
5
install-strapi.sh
Normal file → Executable file
@@ -1,9 +1,8 @@
|
||||
# Vérifier si le dossier strapi est déjà créé dans le répertoire de docker
|
||||
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 ? (y/n) " response
|
||||
echo
|
||||
if [ "$response" == "y" ]; 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
|
||||
docker compose build
|
||||
|
||||
Reference in New Issue
Block a user