aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-11 08:28:55 -0300
committerEuAndreh <eu@euandre.org>2019-06-11 08:28:55 -0300
commit36c18fd5c78d84519314039f44326166ececee7d (patch)
tree0055c86765a3cf856a0742841280c9fa6910b2d4 /scripts
parentLog when finished runnign trap (diff)
downloadserver-36c18fd5c78d84519314039f44326166ececee7d.tar.gz
server-36c18fd5c78d84519314039f44326166ececee7d.tar.xz
s/mail_debug_log/finish_phase/
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/deploy.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh
index 6d6737d..d40ea89 100755
--- a/scripts/ci/deploy.sh
+++ b/scripts/ci/deploy.sh
@@ -5,7 +5,7 @@ set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../../
-mail_debug_log() {
+finish_phase() {
local -r exit_code="${?}"
if [[ "${exit_code}" = 0 ]]; then
@@ -36,7 +36,7 @@ mail_debug_log() {
echo "Finished cleanup."
}
-trap mail_debug_log EXIT
+trap finish_phase EXIT
create_known_hosts_file() {
echo "${TLD},$(terraform output public_floating_ip) ssh-rsa $(awk '{print $2}' < ./secrets/ssh/vps-box-server.pub)" > ./generated/generated-known-hosts.txt