This commit is contained in:
@@ -3,5 +3,14 @@ dch-autoprovision
|
||||
%end
|
||||
|
||||
%post
|
||||
{
|
||||
ls -la /root/.ssh
|
||||
chmod -R 700 /root/.ssh
|
||||
cat /root/.ssh/authorized_keys
|
||||
systemctl enable --no-reload notify-online.service
|
||||
sed -i 's/.*ForwardToConsole.*/ForwardToConsole=yes/' /etc/systemd/journald.conf
|
||||
grep ForwardTo /etc/systemd/journald.conf
|
||||
passwd -d root
|
||||
exit 0
|
||||
} > /dev/console
|
||||
%end
|
||||
|
||||
Reference in New Issue
Block a user