Skip to content

Commit 51b6a9c

Browse files
Strace is your friend
1 parent 0c98ca3 commit 51b6a9c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# solving the wordpress problem
2-
3-
exec{'fix-the-wordpress':
4-
command => 'sed -i s/phpp/php/g /var/www/html/wp-settings.php',
5-
path => '/usr/local/bin/:/bin/'
1+
# A puppet scipt to change a line in a file on a server
2+
$filetoedit = '/var/www/html/wp-settings.php'
3+
# Replace the line in the wp-settings.php file containing "phpp" with "php"
4+
exec { 'fix-wordpress':
5+
command => "sed -i 's/phpp/php/g' ${filetoedit}",
6+
path => ['/bin','/usr/bin']
67
}

0 commit comments

Comments
 (0)