7 echo "Trying to setup $WIN32_ADDR"
8 URL=http://$WIN32_ADDR:8091
10 echo "Stopping bacula-fd service"
11 wget -qO /dev/null "$URL/stop"
13 echo -en "Set director name:\t\t"
14 wget -qO - "$URL/set_director_name?name=$HOST-dir;pass=$WIN32_PASSWORD"
16 if [ x$WIN32_USER != x ]; then
17 echo -en "Setting auto_logon:\t\t"
18 wget -qO - "$URL/set_auto_logon?user=$WIN32_USER;pass=$WIN32_PASS"
23 echo "Starting bacula-fd service"
24 wget -qO /dev/null "$URL/start"
26 echo -ne "Reloading regress-win32.pl:\t"
27 wget -qO - "$URL/reload"
30 while ! wget -qO /dev/null $URL/nop; do
33 if [ $i -ge 12 ]; then # print message every minute
35 echo "== `date +%T` Waiting for script to reload"