我具有bitbucket管道设置,因此我的站点在每次推送的提交时都通过bitbucket部署到服务器。但是,部署过程会不断更改我的文件夹和文件权限,将文件夹更改为777,将文件更改为666。我需要做什么以确保我的目录和文件权限在部署时不更改,或者至少在部署后如何更改文件权限。我的目录必须是777,文件必须是666。
我下面的位桶管道:
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
develop:
- step:
name: Deploy to develop
deployment: test
trigger: automatic
script:
- pipe: atlassian/sftp-deploy:0.3.1
variables:
USER: '.....'
SERVER: '.....'
REMOTE_PATH: '...../wp-content/themes/mytheme/'
LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/*