set -e after switch user
This commit is contained in:
parent
dedf46ed1f
commit
d874c633d7
@ -7,7 +7,6 @@
|
||||
# provider will have a different initial user account.
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
# Become root, if we aren't already.
|
||||
# Docker images will already be root. AMIs will have an SSH user account.
|
||||
@ -18,6 +17,8 @@ then
|
||||
exec sudo su -c "$cmd_str"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
MANAGED_FILES=(
|
||||
/etc/motd
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user