From: Eric Bollengier Date: Tue, 7 Dec 2010 16:25:24 +0000 (+0100) Subject: regress: Add ./scripts/setup_win32 X-Git-Tag: Release-7.0.0~1275 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90174d512f3855c0185bd43677d5491ae5d622f5;p=bacula%2Fbacula regress: Add ./scripts/setup_win32 - change director name - restart the regress-win32 script - set auto_logon - update version --- diff --git a/regress/scripts/setup_win32 b/regress/scripts/setup_win32 new file mode 100755 index 0000000000..3bf4386f21 --- /dev/null +++ b/regress/scripts/setup_win32 @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Setup windows box +# +. scripts/functions + +echo "Trying to setup $WIN32_ADDR" +URL=http://$WIN32_ADDR:8091 + +echo "Stopping bacula-fd service" +wget -qO /dev/null "$URL/stop" + +echo -en "Set director name:\t\t" +wget -qO - "$URL/set_director_name?name=$HOST-dir;pass=$WIN32_PASSWORD" + +if [ x$WIN32_USER != x ]; then + echo -en "Setting auto_logon:\t\t" + wget -qO - "$URL/set_auto_logon?user=$WIN32_USER;pass=$WIN32_PASS" +fi + +update_win32 + +echo "Starting bacula-fd service" +wget -qO /dev/null "$URL/start" + +echo -ne "Reloading regress-win32.pl:\t" +wget -qO - "$URL/reload"