New script to run db updates so can be done by ubuntu user

This commit is contained in:
Martyn Inglis
2016-01-11 17:00:04 +00:00
parent 7ad7814b3e
commit 362b2aeba7
2 changed files with 7 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ hooks:
location: scripts/aws_change_ownership.sh location: scripts/aws_change_ownership.sh
runas: root runas: root
timeout: 300 timeout: 300
-
location: scripts/aws_db_updates.sh
runas: ubuntu
timeout: 300
ApplicationStart: ApplicationStart:
- -
location: scripts/aws_start_app.sh 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