From 6e92493bbcbe2b82d141b0dc017e2acf44404917 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Mon, 24 Oct 2022 11:48:46 +0200
Subject: [PATCH] Avoid using apt-eole update

---
 do_postinstall.sh      | 1 +
 postinstall_partage.sh | 3 +--
 postinstall_reseau.sh  | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/do_postinstall.sh b/do_postinstall.sh
index 263f123..3fb64e6 100755
--- a/do_postinstall.sh
+++ b/do_postinstall.sh
@@ -32,6 +32,7 @@ then
         ssh $ctn ./postinstall_$ctn.sh
         ssh $ctn rm postinstall_$ctn.sh
     done
+    Maj-Auto
 else
     echo "Please run postinstall on the master"
     exit 1
diff --git a/postinstall_partage.sh b/postinstall_partage.sh
index 1ca2bb5..b1e751b 100755
--- a/postinstall_partage.sh
+++ b/postinstall_partage.sh
@@ -21,7 +21,6 @@ branch=eole-amon-ecole-2.8
 
 if [ "$(dpkg -l | grep git)" ]
 then
-    apt-eole update
     apt-eole install \
         git \
         printer-driver-splix \
@@ -61,7 +60,7 @@ done
 line="0 1 1 * * $DIR/registry/scripts/clean.sh > /dev/null 2>&1"
 (crontab -l | grep -v "registry"; echo "${line}") | crontab -
 
-# Copy ssh key to tftp
+# Copy ssh key to ftp
 while [ ! -e "/root/.ssh/id_rsa.pub" ]
 do
     sleep 10
diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh
index a47a351..10478ac 100755
--- a/postinstall_reseau.sh
+++ b/postinstall_reseau.sh
@@ -21,7 +21,6 @@ branch=eole-amon-ecole-2.8
 
 if [ "$(dpkg -l | grep git)" ]
 then
-    apt-eole update
     apt-eole install \
         git \
         xrdp
-- 
GitLab