Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

bootstrap-aws-installer: Leave `ubuntu` user deletion until the last.

Alex Vandiverf5d4dea2f026
diff --git a/tools/setup/bootstrap-aws-installer b/tools/setup/bootstrap-aws-installer
index c864fdc82a3..e4d9fd7b802 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