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

zmena nazvu promene hostname na domain_name; uprava funkce pro vytvareni...

zmena nazvu promene hostname na domain_name; uprava funkce pro vytvareni souboru warden-watchdog.conf
parent 67dee796
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,7 @@ paramsChck ...@@ -213,7 +213,7 @@ paramsChck
# set variables # set variables
err="/tmp/warden-err" err="/tmp/warden-err"
hostname=$(hostname -f || echo "unspecified.server") domain_name=$(hostname -f || echo "unspecified.server")
dirname=${0%/*} dirname=${0%/*}
bin="${basedir}/bin" bin="${basedir}/bin"
lib="${basedir}/lib" lib="${basedir}/lib"
...@@ -268,8 +268,7 @@ doTemplate \ ...@@ -268,8 +268,7 @@ doTemplate \
# create wardenWatchdog configuration file # create wardenWatchdog configuration file
echo -n "Creating Warden Watchdog configuration file ... " echo -n "Creating Warden Watchdog configuration file ... "
doTemplate \ doTemplate \
_HOSTNAME_ "$hostname" \ _DOMAIN_NAME_ "$domain_name" \
_CONTACT_ "$contact" \
< $watchdog_conf_tmpl \ < $watchdog_conf_tmpl \
> $watchdog_conf && echo "OK" || errClean > $watchdog_conf && echo "OK" || errClean
......
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