Remove hook + auto start #7

Merged
admin merged 1 commits from dev into prod 2026-06-12 14:41:59 +02:00
Showing only changes of commit 3a6a58e037 - Show all commits

View File

@@ -161,16 +161,4 @@ sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/ssh
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
systemctl restart sshd systemctl restart sshd
EOF
# 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