diff --git a/0x17-web_stack_debugging_3/0-strace_is_your_friend.pp b/0x17-web_stack_debugging_3/0-strace_is_your_friend.pp new file mode 100644 index 0000000..1607328 --- /dev/null +++ b/0x17-web_stack_debugging_3/0-strace_is_your_friend.pp @@ -0,0 +1,10 @@ +# A puppet manuscript to replace a line in a file on a server + +$file_to_edit = '/var/www/html/wp-settings.php' + +#replace line containing "phpp" with "php" + +exec { 'replace_line': + command => "sed -i 's/phpp/php/g' ${file_to_edit}", + path => ['/bin','/usr/bin'] +} diff --git a/0x17-web_stack_debugging_3/README.md b/0x17-web_stack_debugging_3/README.md new file mode 100644 index 0000000..0bbffa4 --- /dev/null +++ b/0x17-web_stack_debugging_3/README.md @@ -0,0 +1 @@ +web_stack-debugging