We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ebd22 commit 0a0c781Copy full SHA for 0a0c781
0x17-web_stack_debugging_3/0-strace_is_your_friend.pp
@@ -0,0 +1,10 @@
1
+# A puppet manuscript to replace a line in a file on a server
2
+
3
+$file_to_edit = '/var/www/html/wp-settings.php'
4
5
+#replace line containing "phpp" with "php"
6
7
+exec { 'replace_line':
8
+ command => "sed -i 's/phpp/php/g' ${file_to_edit}",
9
+ path => ['/bin','/usr/bin']
10
+}
0 commit comments