Created
September 27, 2013 03:33
-
-
Save jeremykendall/6723786 to your computer and use it in GitHub Desktop.
Changing apache user and group in /etc/apache2/envvars using sed in a puppet exec. Stolen from https://github.com/Intracto/Puppet/blob/master/apache2/manifests/init.pp#L12-L26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { "sed -i 's/www-data/vagrant/g' /etc/apache2/envvars": | |
onlyif => "/bin/grep -c 'www-data' /etc/apache2/envvars", | |
notify => Service['apache2'], | |
require => Package['apache2'], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment