From ebb566f76836576453e6e5e0ed96b7645539fb54 Mon Sep 17 00:00:00 2001 From: "duncan.parkes" Date: Mon, 17 Sep 2007 17:39:25 +0000 Subject: [PATCH] add an email to the team --- deployment_script_common | 4 ++++ deployment_script_haggis | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 deployment_script_haggis diff --git a/deployment_script_common b/deployment_script_common index abe890d..c3a74b8 100644 --- a/deployment_script_common +++ b/deployment_script_common @@ -72,6 +72,10 @@ echo echo "Updating deployment log" echo "Deployed by $USER on `date`" >> $DEPLOYMENT_LOG +# Email the team +echo "emailing the team" +echo "www.planningalerts.com redeployed by $USER at `date`" | mail -s "PlanningAlerts Deployment" $TEAM_EMAIL + echo echo "Remember to check that there are no changes needed in:" echo ".htaccess" diff --git a/deployment_script_haggis b/deployment_script_haggis new file mode 100755 index 0000000..423598a --- /dev/null +++ b/deployment_script_haggis @@ -0,0 +1,14 @@ +#!/usr/local/bin/bash + +export PLANNING_ROOT="/data/vhost/www.planningalerts.com/" +export PLANNING_BACKUPS="$PLANNING_ROOT/backups/" +export DEPLOYMENT_LOG_DIRECTORY="$PLANNING_ROOT/logs/" +export DEPLOYMENT_LOG="$DEPLOYMENT_LOG_DIRECTORY/deployment_log" + +export BACKUP_DIRECTORY_NAME="planningalerts_backup_`date +%F_%Hh%Mm%Ss`" + +export BACKUP_DIRECTORY="$PLANNING_BACKUPS$BACKUP_DIRECTORY_NAME/" + +export TEAM_EMAIL="team@planningalerts.com" + +$SHELL deployment_script_common