mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Trap errors in stop script in AWS, and put heroku back as a deploy ganet
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
function error_exit
|
||||
{
|
||||
echo "$1" 1>&2
|
||||
exit 0
|
||||
}
|
||||
|
||||
echo "Stopping application"
|
||||
cd ~/notifications-admin/;
|
||||
sudo service notifications-admin stop
|
||||
if sudo service notifications-admin stop; then
|
||||
exit 0
|
||||
else
|
||||
error_exit "Could not stop application"
|
||||
fi
|
||||
Reference in New Issue
Block a user