Merge pull request #64 from alphagov/move-db-updates-to-be-run-by-ubuntu

New script to run db updates so can be done by ubuntu user
This commit is contained in:
minglis
2016-01-11 17:11:41 +00:00
2 changed files with 7 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ hooks:
location: scripts/aws_change_ownership.sh
runas: root
timeout: 300
-
location: scripts/aws_db_updates.sh
runas: ubuntu
timeout: 300
ApplicationStart:
-
location: scripts/aws_start_app.sh

3
scripts/aws_db_updates.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
python3 db.py db upgrade