Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,479
Community Members
 
Community Events
168
Community Groups

File permissions changed after deployment

Edited

Hi,

 

Most probably a silly question. I have setup pipelines and deployment from bitbucket via AWS Codedeploy to my servers. But all files are deployed with permissions 666. Which is not really what I want.

Am I missing something obvious in the config?

 

The files are file on my local computer before being pushed to the repository.

Should I edit script to change permissions back to what I need them to be after deployment?

 

Thanks for all suggestions

Milos


 

Since posting the question I did some checking and I needed to edit the appspec.yml file.

- Files are now OK

- Folder are OK

- Specific folder I need with different permission is not being changed as needed.

 

part of my file with permissions

permissions:
- object: /home/HOMEDIRECTORY/public_html
pattern: "**"
owner: wowner
group: wgroup
mode: 644
type:
- file
- object: /home/HOMEDIRECTORY/public_html
except: [home/HOMEDIRECTORY/public_html/SPECIAL/PATH/cache]
owner: wowner
group: wgroup
mode: 755
type:
- directory
- object: /home/HOMEDIRECTORY/public_html/SPECIAL/PATH/cache
owner: wowner
group: wgroup
mode: 777
type:
- directory

 

So with this code. Files are changed ok. ALL folders are set to 755. But including my special which should be excluded and afterwards changed to 777 on it's own

 

Any suggestions?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events