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.
|
# 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
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user