set -e after switch user

This commit is contained in:
Cory Schwartz 2021-12-17 17:14:53 -08:00
parent dedf46ed1f
commit d874c633d7

View File

@ -7,7 +7,6 @@
# provider will have a different initial user account. # provider will have a different initial user account.
set -x set -x
set -e
# Become root, if we aren't already. # Become root, if we aren't already.
# Docker images will already be root. AMIs will have an SSH user account. # Docker images will already be root. AMIs will have an SSH user account.
@ -18,6 +17,8 @@ then
exec sudo su -c "$cmd_str" exec sudo su -c "$cmd_str"
fi fi
set -e
MANAGED_FILES=( MANAGED_FILES=(
/etc/motd /etc/motd
) )