Skip to content

Commit

Permalink
0x17
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMousa committed Jun 19, 2024
1 parent 9099dd4 commit 6467b6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 0x17-web_stack_debugging_3/0-strace_is_your_friend.pp
Original file line number Diff line number Diff line change
@@ -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']
}
2 changes: 2 additions & 0 deletions 0x17-web_stack_debugging_3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0x17

0 comments on commit 6467b6c

Please sign in to comment.