Code Review
/
releng
/
builder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update packer config to work in Vexxhost
[releng/builder.git]
/
packer
/
provision
/
docker.sh
diff --git
a/packer/provision/docker.sh
b/packer/provision/docker.sh
index cdd8cb051adf45da4cbceebdf5fb98361a5221ef..12814a6f213bccc1304aa95c1c227d6457b78a7b 100644
(file)
--- a/
packer/provision/docker.sh
+++ b/
packer/provision/docker.sh
@@
-2,6
+2,9
@@
# vim: sw=4 ts=4 sts=4 et :
# vim: sw=4 ts=4 sts=4 et :
+# force any errors to cause the script and job to end in failure
+set -xeu -o pipefail
+
rh_changes() {
echo "---> RH changes"
# install docker and enable it
rh_changes() {
echo "---> RH changes"
# install docker and enable it
@@
-30,12
+33,12
@@
ubuntu_changes() {
echo "---> Ubuntu changes"
}
echo "---> Ubuntu changes"
}
-OS=$(/usr/bin/facter operatingsystem)
+OS=$(/usr/bin/facter operatingsystem
| tr '[:upper:]' '[:lower:]'
)
case "$OS" in
case "$OS" in
-
CentOS|Fedora|RedH
at)
+
centos|fedora|redh
at)
rh_changes
;;
rh_changes
;;
-
U
buntu)
+
u
buntu)
ubuntu_changes
;;
*)
ubuntu_changes
;;
*)