Skip to content

Commit 0a0c781

Browse files
committed
puppet
1 parent 84ebd22 commit 0a0c781

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
+10
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)