Skip to content

Commit d740185

Browse files
committed
fix: restoring meeded items
1 parent f0e3b15 commit d740185

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/90-cleanup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ elif [ -n "$(command -v apt-get)" ]; then
4949
# They may have been removed as dependencies during package cleanup
5050
apt-get -y install --no-install-recommends cloud-init openssh-server
5151

52+
# Ensure cloud-init and SSH services are enabled (may not be re-enabled on reinstall)
53+
systemctl enable cloud-init-local.service cloud-init.service cloud-config.service cloud-final.service ssh.service || true
54+
5255
# Protect SSH and cloud-init dependencies from autoremove
5356
# Without these, the AMI won't be accessible via SSH after boot
5457
apt-mark manual openssh-server cloud-init python3-systemd python3-jinja2 \

0 commit comments

Comments
 (0)