feat: enable exit on error
This commit is contained in:
1 parent
9dc6d8e130
commit
ba06bac1b9
8 files changed
+8
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
echo '--> Prevent login until after setup is complete'
|
echo '--> Prevent login until after setup is complete'
|
||||||
# Be a bit of a dork about login in
|
# Be a bit of a dork about login in
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
echo '--> Update grub boot loader'
|
echo '--> Update grub boot loader'
|
||||||
sed -e 's|GRUB_CMDLINE_LINUX="|GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1|g' \
|
sed -e 's|GRUB_CMDLINE_LINUX="|GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1|g' \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
echo '--> Enable Google DNS for Docker'
|
echo '--> Enable Google DNS for Docker'
|
||||||
sed -e 's|#DOCKER_OPTS|DOCKER_OPTS|g' \
|
sed -e 's|#DOCKER_OPTS|DOCKER_OPTS|g' \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
echo '--> Enable and configure UFW'
|
echo '--> Enable and configure UFW'
|
||||||
sed -e 's|DEFAULT_FORWARD_POLICY=.*|DEFAULT_FORWARD_POLICY="ACCEPT"|g' \
|
sed -e 's|DEFAULT_FORWARD_POLICY=.*|DEFAULT_FORWARD_POLICY="ACCEPT"|g' \
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
echo '--> Write the application info'
|
echo '--> Write the application info'
|
||||||
application_version="$DOKKU_VERSION"
|
application_version="$DOKKU_VERSION"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
echo '--> Cleaning up'
|
echo '--> Cleaning up'
|
||||||
rm -rf /tmp/* /var/tmp/*
|
rm -rf /tmp/* /var/tmp/*
|
||||||
|
|||||||
Reference in new issue
Block a user