Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Escape more variables for munin
Browse files Browse the repository at this point in the history
  • Loading branch information
shawniverson committed Feb 7, 2016
1 parent d102fc0 commit dc96ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update/versions/EFA-Version-Upgrade-3.0.0.9-beta
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ EOF
update-mailwatch

# Add Munin to Mailwatch
sed -i "/^ \/\*End EFA\*/ c\ \$efa_config = preg_grep('/^MUNINPWD/', file('/etc/EFA-Config'));\n foreach(\$efa_config as \$num => \$line) {\n if (\$line) {\n \$munin_pass = chop(preg_replace('/^MUNINPWD:(.*)/','\$1', \$line));\n }\n }\n echo '<li><a href=\"https://munin:' . $munin_pass . '@' . $hostname . '/munin\">View Munin Statistics</a>';\n /*End EFA*/" /var/www/html/mailscanner/other.php
sed -i "/^ \/\*End EFA\*/ c\ \$efa_config = preg_grep('/^MUNINPWD/', file('/etc/EFA-Config'));\n foreach(\$efa_config as \$num => \$line) {\n if (\$line) {\n \$munin_pass = chop(preg_replace('/^MUNINPWD:(.*)/','\$1', \$line));\n }\n }\n echo '<li><a href=\"https://munin:' . \$munin_pass . '@' . \$hostname . '/munin\">View Munin Statistics</a>';\n /*End EFA*/" /var/www/html/mailscanner/other.php

# Issue #96 Reconfigure to permit yum update
CHECKEXCLUDE=$(grep "^exclude" /etc/yum.conf)
Expand Down

0 comments on commit dc96ac8

Please sign in to comment.