From 003dc113835b2763aa5f47819f4dea4e8559b4be Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 12 Jun 2026 17:53:01 +0200 Subject: [PATCH] Update bootstrap.sh --- bootstrap.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 9758cb1..8aaae97 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -11,8 +11,8 @@ CRONTABTMP="/tmp/crontab.root.tmp" HOSTNAME=$(hostname) KEYFILE="/root/.ssh/$HOSTNAME" TEMP_SCRIPT="/root/firstlogin.sh" -TEMP_SCRIPT_WRAPPER="root/firstloginwrapper.sh" -TEMP_SCRIPT_CLEANER="root/firstlogincleaner.sh" +TEMP_SCRIPT_WRAPPER="/root/firstloginwrapper.sh" +TEMP_SCRIPT_CLEANER="/root/firstlogincleaner.sh" #################. ALIASES @@ -205,4 +205,8 @@ ssh-keygen -t ed25519 -C "$HOSTNAME" -f "$KEYFILE" -N "" # Ajouter la clé publique dans authorized_keys cat "${KEYFILE}.pub" >> /root/.ssh/authorized_keys -chmod 600 /root/.ssh/authorized_keys \ No newline at end of file +chmod 600 /root/.ssh/authorized_keys + +rm -fr /etc/systemd/system/bootstrap.service +rm -fr /etc/systemd/system/multi-user.target.wants/bootstrap.service +systemctl daemon-reload \ No newline at end of file -- 2.47.3