]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding a windows smb config for testing
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Mar 2015 15:50:59 +0000 (16:50 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 3 Mar 2015 16:29:10 +0000 (17:29 +0100)
apps/files_external/tests/env/start-smb-windows.sh [new file with mode: 0755]
apps/files_external/tests/env/stop-smb-windows.sh [new file with mode: 0755]

diff --git a/apps/files_external/tests/env/start-smb-windows.sh b/apps/files_external/tests/env/start-smb-windows.sh
new file mode 100755 (executable)
index 0000000..d56b0d4
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/bash
+#
+# ownCloud
+#
+# Set environment variable DEBUG to print config file
+#
+# @author Thomas Müller
+# @copyright 2015 Thomas Müller <deepdiver@owncloud.com>
+#
+
+# retrieve current folder to place the config in the parent folder
+thisFolder=`echo $0 | replace "env/start-smb-windows.sh" ""`
+
+if [ -z "$thisFolder" ]; then
+    thisFolder="."
+fi;
+
+user=smb-test
+password=!owncloud123
+host=WIN-9GTFAS08C15
+
+cat > $thisFolder/config.smb.php <<DELIM
+<?php
+
+return array(
+    'run'=>true,
+    'host'=>'$host',
+    'user'=>'$user',
+    'password'=>'$password',
+    'share'=>'oc-test',
+    'root'=>'',
+);
+
+DELIM
diff --git a/apps/files_external/tests/env/stop-smb-windows.sh b/apps/files_external/tests/env/stop-smb-windows.sh
new file mode 100755 (executable)
index 0000000..8e9c82b
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+#
+# ownCloud
+#
+# @author Thomas Müller
+# @copyright 2015 Thomas Müller <deepdiver@owncloud.com>
+#
+
+# retrieve current folder to remove the config from the parent folder
+thisFolder=`echo $0 | replace "env/stop-smb-windows.sh" ""`
+
+if [ -z "$thisFolder" ]; then
+    thisFolder="."
+fi;
+
+
+# cleanup
+rm $thisFolder/config.smb.php