Skip to content

Commit

Permalink
Merge pull request #33 from thin-edge/fix-avoid-using-wildcard
Browse files Browse the repository at this point in the history
fix: avoid using wildcard in include folder syntax
  • Loading branch information
reubenmiller authored Dec 5, 2024
2 parents d16fb5d + 4c2e200 commit 28dcb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packaging/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ if [ -f "$MONITRC" ]; then
# So delete the line as it will be replaced with a similar line afterwards
sed -i 's|^include /etc/monit/conf.d/\*$||g' "$MONITRC"

if ! grep -q "include /etc/monit/conf.d/\*" "$MONITRC"; then
if ! grep -q "include /etc/monit/conf.d/" "$MONITRC"; then
echo "Adding /etc/monit/conf.d/ to the monit config ($MONITRC)" >&2
echo 'include /etc/monit/conf.d/*.conf' >> "$MONITRC"
echo 'include /etc/monit/conf.d/' >> "$MONITRC"
fi
fi

Expand Down

0 comments on commit 28dcb1f

Please sign in to comment.