From f5d4dea2f0269a00699bea26ba3eb0fbd170f629 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 23 Jun 2022 11:46:09 -0700 Subject: [PATCH] bootstrap-aws-installer: Leave `ubuntu` user deletion until the last. This makes it easier to log in and figure out what went wrong if something failed during the bootstrapping process. --- tools/setup/bootstrap-aws-installer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/setup/bootstrap-aws-installer b/tools/setup/bootstrap-aws-installer index c864fdc82a..e4d9fd7b80 100644 --- a/tools/setup/bootstrap-aws-installer +++ b/tools/setup/bootstrap-aws-installer @@ -21,9 +21,6 @@ echo "$HOSTNAME" >/etc/hostname hostname "$HOSTNAME" sed -i "s/localhost$/localhost $HOSTNAME $SERVER/" /etc/hosts -# Delete the ubuntu user -userdel ubuntu - # Make sure root doesn't have a password passwd -d root @@ -96,4 +93,7 @@ git -C zulip checkout "$BRANCH" install_keys zulip +# Delete the ubuntu user +userdel ubuntu + reboot