]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: Add ./scripts/setup_win32
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 7 Dec 2010 16:25:24 +0000 (17:25 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:39:44 +0000 (14:39 +0200)
 - change director name
 - restart the regress-win32 script
 - set auto_logon
 - update version

regress/scripts/setup_win32 [new file with mode: 0755]

diff --git a/regress/scripts/setup_win32 b/regress/scripts/setup_win32
new file mode 100755 (executable)
index 0000000..3bf4386
--- /dev/null
@@ -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"