Skip to content
Snippets Groups Projects
Commit 4282259d authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

uprava funkce pro update souboru warden-watchdog.conf

parent 535f01c8
No related branches found
No related tags found
No related merge requests found
...@@ -299,13 +299,11 @@ doTemplate \ ...@@ -299,13 +299,11 @@ doTemplate \
# update wardenWatchdog configuration file # update wardenWatchdog configuration file
echo -n "Updating Warden Watchdog configuration file ... " echo -n "Updating Warden Watchdog configuration file ... "
hostname=$(getConfValue "$watchdog_conf" hostname) domain_name=$(getConfValue "$watchdog_conf" DOMAIN_NAME)
contact=$(getConfValue "$watchdog_conf" contact) email_subject=$(getConfValue "$warden_conf" EMAIL_SUBJECT)
email_subject=$(getConfValue "$warden_conf" email_subject) email_server_conf=$(getConfValue "$warden_conf" EMAIL_SERVER_CONF)
email_server_conf=$(getConfValue "$warden_conf" email_server_conf)
doTemplate \ doTemplate \
_HOSTNAME_ "$hostname" \ _DOMAIN_NAME_ "$domain_name" \
_CONTACT_ "$contact" \
_EMAIL_SUBJECT_ "$email_subject" \ _EMAIL_SUBJECT_ "$email_subject" \
_EMAIL_SERVER_CONF_ "$email_server_conf" \ _EMAIL_SERVER_CONF_ "$email_server_conf" \
< $watchdog_conf_tmpl \ < $watchdog_conf_tmpl \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment