Skip to content

Commit

Permalink
fix: restart cloud-init and remove /var/lib/cloud-instances
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Sep 9, 2024
1 parent 686a3f5 commit 66cc7fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/cloud/services/secretsmanager/secret_fetch_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ if [ ${GUNZIP_RETURN} -ne 0 ]; then
fi
log::info "restarting cloud-init"
systemctl restart cloud-init
rm -rf /var/lib/cloud/instances
cloud-init clean --reboot
log::success_exit
`
3 changes: 2 additions & 1 deletion pkg/cloud/services/ssm/secret_fetch_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ if [ ${GUNZIP_RETURN} -ne 0 ]; then
fi
log::info "restarting cloud-init"
systemctl restart cloud-init
rm -rf /var/lib/cloud/instances
cloud-init clean --reboot
log::success_exit
`

0 comments on commit 66cc7fa

Please sign in to comment.