Make repo be owned by ubuntu not root post code deploy deployment.

This commit is contained in:
Martyn Inglis
2016-01-07 15:28:21 +00:00
parent 44b0a5f07d
commit 6354bc02db
2 changed files with 9 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,5 @@
#!/bin/bash
echo "Chown application to be owned by ubuntu"
cd /home/ubuntu/;
chown -R ubuntu:ubuntu notifications-api