|
@@ -93,6 +93,5 @@ if [ -n "$PACKER" ]; then
|
|
sed -i "/^#\?PermitRootLogin/d" /mnt/etc/ssh/sshd_config
|
|
sed -i "/^#\?PermitRootLogin/d" /mnt/etc/ssh/sshd_config
|
|
echo "PermitRootLogin yes" >> /mnt/etc/ssh/sshd_config
|
|
echo "PermitRootLogin yes" >> /mnt/etc/ssh/sshd_config
|
|
fi
|
|
fi
|
|
-sleep 10m
|
|
|
|
umount -R /mnt
|
|
umount -R /mnt
|
|
(sleep 5 && systemctl reboot) &
|
|
(sleep 5 && systemctl reboot) &
|