diff --git a/appspec.yml b/appspec.yml index c6a713089..19a4b9e67 100644 --- a/appspec.yml +++ b/appspec.yml @@ -1,7 +1,7 @@ --- files: - - destination: /home/ubuntu/notifications-admin + destination: /home/notify-app/notifications-admin source: / hooks: AfterInstall: diff --git a/scripts/aws_change_ownership.sh b/scripts/aws_change_ownership.sh index 7df24a284..ef03e42c7 100755 --- a/scripts/aws_change_ownership.sh +++ b/scripts/aws_change_ownership.sh @@ -1,5 +1,5 @@ #!/bin/bash -echo "Chown application to be owned by ubuntu" -cd /home/ubuntu/; -chown -R ubuntu:ubuntu notifications-admin +echo "Chown application to be owned by notify" +cd /home/notify-app/; +chown -R notify-app:govuk-notify-applications notifications-admin diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index bb00bcd6b..8bbf2cd46 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -1,5 +1,5 @@ #!/bin/bash echo "Install dependencies" -cd /home/ubuntu/notifications-admin; -pip3 install -r /home/ubuntu/notifications-admin/requirements.txt +cd /home/notify-app/notifications-admin; +pip3 install -r /home/notify-app/notifications-admin/requirements.txt diff --git a/wsgi.py b/wsgi.py index dd2db3d10..7553c2cfe 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1,7 +1,7 @@ from credstash import getAllSecrets import os -default_env_file = '/home/ubuntu/environment' +default_env_file = '/home/notify-app/environment' environment = 'live' if os.path.isfile(default_env_file):