Skip to content

Commit

Permalink
Update check-wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenspille authored Oct 18, 2022
1 parent e586fb5 commit 8ad9a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-wordpress
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import re
import subprocess
import json

VERSION="0.02"
VERSION="0.03"

wp_config = {
"www.zmb.rocks": {
Expand Down Expand Up @@ -96,7 +96,7 @@ def wp_check(name: str, conf: dict):
try:
subprocess.run([f"sudo -u {conf['wp_user']} wp --path={conf['wp_path']} core version > /dev/null"], shell=True, check=True)
except:
print (f'2 "{name}" - Dependency failed: Please check if wp_path is configured correctly in /etc/checkmk/wordpress.conf')
print (f'2 "{name}" - Dependency failed: Please check if wp_path is configured correctly in /etc/check_mk/wordpress.conf')
os._exit(1)

return True
Expand Down

0 comments on commit 8ad9a20

Please sign in to comment.