diff --git a/appspec.yml b/appspec.yml index cefddcb1d..8d617ca3d 100644 --- a/appspec.yml +++ b/appspec.yml @@ -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 diff --git a/scripts/aws_change_ownership.sh b/scripts/aws_change_ownership.sh new file mode 100755 index 000000000..411d380b1 --- /dev/null +++ b/scripts/aws_change_ownership.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Chown application to be owned by ubuntu" +cd /home/ubuntu/; +chown -R ubuntu:ubuntu notifications-api