feat: enable exit on error

This commit is contained in:
Jose Diaz-Gonzalez
2023-02-16 14:48:43 -05:00
parent 9dc6d8e130
commit ba06bac1b9
8 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
export DEBIAN_FRONTEND=noninteractive

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
echo '--> Prevent login until after setup is complete'
# Be a bit of a dork about login in

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
export DEBIAN_FRONTEND=noninteractive

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
echo '--> Update grub boot loader'
sed -e 's|GRUB_CMDLINE_LINUX="|GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1|g' \

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
echo '--> Enable Google DNS for Docker'
sed -e 's|#DOCKER_OPTS|DOCKER_OPTS|g' \

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
echo '--> Enable and configure UFW'
sed -e 's|DEFAULT_FORWARD_POLICY=.*|DEFAULT_FORWARD_POLICY="ACCEPT"|g' \

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
echo '--> Write the application info'
application_version="$DOKKU_VERSION"

View File

@@ -1,5 +1,6 @@
#!/bin/bash
set -eo pipefail
set -o errexit
echo '--> Cleaning up'
rm -rf /tmp/* /var/tmp/*