Search the Community
Showing results for tags 'yml'.
Found 1 result
Hi all, I have been trying to set file and folder permissions on my projects files and folders using yml. While it works for the files on my project folder, it does not work on the folder itself, or folders in the project folder. It also does not work on folders outside the root i.e. folders on the same level as the project folder. How may I achieve this ? Thanks all ! Project Structure: /project --- | -- folder1 // permissions not set | |-- my-file-1.txt // permissions set | |-- my-file-2.txt // permissions set | -- folder2 // permissions not set | |-- my-file-3.txt // permissions set | -- my-file-4.txt // permissions set | -- my-file-5.txt // permissions set | -- my-file-6.txt // permissions set | | outside_root --- // permissions not set for any files or folders | -- folder3 | |-- out-file-1.txt | |-- out-file-2.txt | -- folder4 | |-- out-file-3.txt | |-- out-file-4.txt | -- out-file-5.txt yml file : version: 0.0 os: linux files: - source: /project destination: /var/www/html - source: /outside_root destination: /var/www/outside_root # For project directory permissions: - object: /var/www/html owner: ec2-user group: apache mode: 755 type: - directory # For outside_root directory - object: /var/www/outside_root owner: ec2-user group: apache mode: 710 type: - directory # For project files - object: /var/www/project owner: ec2-user group: apache mode: 644 type: - file # For outside_root files - object: /var/www/outside_root owner: ec2-user group: apache mode: 640 type: - file