I'm trying to convert a Chef script that's used in AWS OpsWorks for an Ubuntu system to a script I can use with my AWS OpsWorks setup for my Amazon Linux AMI installation.
Their Ubuntu Setup:
sudo chown -R www-data:www-data /var/www
My Linux Setup:
sudo usermod -a -G www apache
sudo chown -R apache /var/www
sudo chgrp -R www /var/www
Their chef Script is as follows:
cookbook_file "/srv/www/wordpress/current/wp-config.php" do
Do I just need to change their
'www-data' user to my
'apache' user to get this script to work with my setup?