Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

File permissions changed after deployment

milosbaran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 22, 2021

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
AUG Leaders

Atlassian Community Events