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.
This commit is contained in:
Alex Vandiver 2022-06-23 11:46:09 -07:00 committed by M@
parent f9b7b8e5d9
commit f5d4dea2f0
1 changed files with 3 additions and 3 deletions

View File

@ -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