diff options
| author | Philipp Geyer <philipp@geyer.co.uk> | 2022-01-28 21:31:55 +0000 |
|---|---|---|
| committer | Philipp Geyer <philipp@geyer.co.uk> | 2022-01-28 21:31:55 +0000 |
| commit | ff525fbcb909048b9b589e4366ff9b0f8d21c417 (patch) | |
| tree | e3f44e6e97bb4a96e764e17d1afd23e0f742c4a1 | |
| parent | 948e7d13c7cb99a615a540fe043a12d5dc242bda (diff) | |
Changing permissions on deployed directory
| -rw-r--r-- | appspec.yml | 4 | ||||
| -rw-r--r-- | scripts/permissions.sh | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/appspec.yml b/appspec.yml index c38058c..a7e1ff7 100644 --- a/appspec.yml +++ b/appspec.yml @@ -4,6 +4,10 @@ files: - source: / destination: /home/ec2-user/philippgeyer.co.uk hooks: + AfterInstall: + - location: scripts/permissions.sh + timeout: 300 + runas: root ApplicationStart: - location: scripts/build.sh timeout: 300 diff --git a/scripts/permissions.sh b/scripts/permissions.sh new file mode 100644 index 0000000..649c586 --- /dev/null +++ b/scripts/permissions.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +DIR=/home/ec2-user/philippgeyer.co.uk + +chown -R web:web ${DIR} |
