From accfa00ade8393b4da9a3c7d63508948b65446f2 Mon Sep 17 00:00:00 2001
From: Florine Lefebvre <florine.lefebvre.etu@univ-lille.fr>
Date: Mon, 17 Mar 2025 11:16:33 +0100
Subject: [PATCH] =?UTF-8?q?d=C3=A9placement=20des=20scripts=20dans=20un=20?=
 =?UTF-8?q?dossier=20scripts=20+=20corrections=20les=20concernants?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../delete_the_podman_psql_container.sh                       | 0
 .../install_psql_on_podman_container.sh                       | 4 ++--
 reset_configprop.sh => scripts/reset_configprop.sh            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename delete_the_podman_psql_container.sh => scripts/delete_the_podman_psql_container.sh (100%)
 rename install_psql_on_podman_container.sh => scripts/install_psql_on_podman_container.sh (74%)
 rename reset_configprop.sh => scripts/reset_configprop.sh (54%)

diff --git a/delete_the_podman_psql_container.sh b/scripts/delete_the_podman_psql_container.sh
similarity index 100%
rename from delete_the_podman_psql_container.sh
rename to scripts/delete_the_podman_psql_container.sh
diff --git a/install_psql_on_podman_container.sh b/scripts/install_psql_on_podman_container.sh
similarity index 74%
rename from install_psql_on_podman_container.sh
rename to scripts/install_psql_on_podman_container.sh
index 53a24bb..ef3e0f6 100755
--- a/install_psql_on_podman_container.sh
+++ b/scripts/install_psql_on_podman_container.sh
@@ -10,9 +10,9 @@ podman run -d --name bdd -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password -e
 #On attend que le port fonctionne
 sleep 2
 
-PGPASSWORD=password psql -h localhost -p 9090 -U user -d bdd -a -f baseDeDonnee/init.sql && PGPASSWORD=password psql -h localhost -p 9090 -U user -d bdd -a -f baseDeDonnee/setup.sql && echo "Ajout des tables et des données effectuée !"
+PGPASSWORD=password psql -h localhost -p 9090 -U user -d bdd -a -f ../baseDeDonnee/init.sql && PGPASSWORD=password psql -h localhost -p 9090 -U user -d bdd -a -f ../baseDeDonnee/setup.sql && echo "Ajout des tables et des données effectuée !"
 
 echo "driver=org.postgresql.Driver
 url=jdbc:postgresql://localhost:9090/bdd
 login=user
-password=password" > WEB-INF/config.prop && echo "Modification du config.prop effectuée."
\ No newline at end of file
+password=password" > ../WEB-INF/config.prop && echo "Modification du config.prop effectuée."
\ No newline at end of file
diff --git a/reset_configprop.sh b/scripts/reset_configprop.sh
similarity index 54%
rename from reset_configprop.sh
rename to scripts/reset_configprop.sh
index 17807fc..7cb7783 100644
--- a/reset_configprop.sh
+++ b/scripts/reset_configprop.sh
@@ -2,4 +2,4 @@
 echo "driver=org.postgresql.Driver
 url=jdbc:postgresql://psqlserv/but2
 login=maximegosselinetu
-password=moi" > WEB-INF/config.prop && echo "Modification du config.prop effectuée."
\ No newline at end of file
+password=moi" > ../WEB-INF/config.prop && echo "Modification du config.prop effectuée."
\ No newline at end of file
-- 
GitLab