We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c98ca3 commit 51b6a9cCopy full SHA for 51b6a9c
0x17-web_stack_debugging_3/0-strace_is_your_friend.pp
@@ -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/'
+# A puppet scipt to change a line in a file on a server
+$filetoedit = '/var/www/html/wp-settings.php'
+# Replace the line in the wp-settings.php file containing "phpp" with "php"
+exec { 'fix-wordpress':
+ command => "sed -i 's/phpp/php/g' ${filetoedit}",
6
+ path => ['/bin','/usr/bin']
7
}
0 commit comments