#!/bin/bash
chown -R root:www-data /var/www/html/CICD/Candidate-Module
find /var/www/html/CICD/Candidate-Module/Candidate-Module -type d -exec chmod 755 {} \;
find /var/www/html/CICD/Candidate-Module/Candidate-Module -type f -exec chmod 644 {} \;
chmod -R 775 /var/www/html/CICD/Candidate-Module/Candidate-Module/storage
chmod -R 775 /var/www/html/CICD/Candidate-Module/Candidate-Module/bootstrap/cache
chmod -R 775 /var/www/html/CICD/Candidate-Module/Candidate-Module/public/chart
chmod -R 777 /var/www/html/CICD/Candidate-Module/Candidate-Module/vendor
chmod -R 777 /var/www/html/CICD/Candidate-Module/Candidate-Module/node_modules
chmod 660 /var/www/html/CICD/Candidate-Module/Candidate-Module/storage/*.key
