Skip to content

Commit

Permalink
[build] Fail on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed May 27, 2016
1 parent 6c6e4d3 commit f9033a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/build/package_scripts/post_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e

user_check() {
getent passwd "$1" > /dev/null 2>&1
Expand Down
1 change: 1 addition & 0 deletions tasks/build/package_scripts/post_remove.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e

user_check() {
getent passwd "$1" > /dev/null 2>&1
Expand Down
1 change: 1 addition & 0 deletions tasks/build/package_scripts/pre_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e

if command -v systemctl >/dev/null && systemctl is-active kibana.service >/dev/null; then
systemctl --no-reload stop kibana.service
Expand Down
1 change: 1 addition & 0 deletions tasks/build/package_scripts/pre_remove.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -e

echo -n "Stopping kibana service..."
if command -v systemctl >/dev/null && systemctl is-active kibana.service >/dev/null; then
Expand Down

0 comments on commit f9033a1

Please sign in to comment.