diff --git a/postinstall_partage.sh b/postinstall_partage.sh index 2134d013e4f5f3ecade025701dba06571cf83d80..b93ff0a579a351efbb9f27db89144eeabdfd4a6c 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -26,8 +26,14 @@ apt-eole install \ printer-driver-splix \ hplip \ wakeonlan -git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol -cd eole-wol +if [ ! -e "eole-wol" ] +then + git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol + cd eole-wol +else + cd eole-wol + git pull +fi cp $DIR/*/service/*.service /etc/systemd/system/ diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh index 4258d5d934880b6f0a2e0d796377495299c6acbc..f34fc3367329a3157141e8d7488c0cef7e195834 100755 --- a/postinstall_reseau.sh +++ b/postinstall_reseau.sh @@ -24,7 +24,14 @@ apt-eole update apt-eole install \ git \ xrdp -git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol +if [ ! -e "eole-wol" ] +then + git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol +else + cd eole-wol + git pull + cd - +fi chown -R www-data:www-data eole-wol/wol/www