From e075145945da2e888943cd395a44ad9bb98c61f5 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Mon, 11 Jan 2016 17:32:24 +0000 Subject: [PATCH] Putting this back in the dependencies file for now - this fails on the instance and not sure why, putting back till I can figure it out --- appspec.yml | 6 +----- scripts/aws_db_updates.sh | 3 --- scripts/aws_install_dependencies.sh | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100755 scripts/aws_db_updates.sh diff --git a/appspec.yml b/appspec.yml index f5ac38fd8..c6a713089 100644 --- a/appspec.yml +++ b/appspec.yml @@ -13,11 +13,7 @@ hooks: location: scripts/aws_change_ownership.sh runas: root timeout: 300 - - - location: scripts/aws_db_updates.sh - runas: ubuntu - timeout: 300 - ApplicationStart: + ApplicationStart: - location: scripts/aws_start_app.sh runas: root diff --git a/scripts/aws_db_updates.sh b/scripts/aws_db_updates.sh deleted file mode 100755 index e45ecc843..000000000 --- a/scripts/aws_db_updates.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -python3 db.py db upgrade diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index a74b4ccea..e36fae522 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -4,3 +4,4 @@ echo "Install dependencies" cd /home/ubuntu/notifications-admin; export FLASK_CONFIG=/home/ubuntu/config.cfg pip3 install -r /home/ubuntu/notifications-admin/requirements.txt +python3 db.py db upgrade