From 3a6a58e03753dd2c9a591941a184954b8a992b9d Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 12 Jun 2026 14:41:30 +0200 Subject: [PATCH] Remove hook + auto start --- bootstrap.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index e4a2532..341b51f 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -161,16 +161,4 @@ sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/ssh sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config systemctl restart sshd - -# Désactivation du hook -rm -f /root/.bash_firstlogin -EOF - -chmod +x /etc/profile.d/first-login.sh - - -FLAG="/root/.firstlogin_done" -if [ ! -f "$FLAG" ]; then - /etc/profile.d/first-login.sh - touch "$FLAG" -fi +EOF \ No newline at end of file -- 2.47.3