From 90174d512f3855c0185bd43677d5491ae5d622f5 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 7 Dec 2010 17:25:24 +0100 Subject: [PATCH] regress: Add ./scripts/setup_win32 - change director name - restart the regress-win32 script - set auto_logon - update version --- regress/scripts/setup_win32 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 regress/scripts/setup_win32 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" -- 2.39.5