diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-03 16:50:59 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-03 17:29:10 +0100 |
commit | 7d3e22836575818348c7945a8304463afacfdc4f (patch) | |
tree | 29189384ba8c54060f4d3b4d1453da6bbaade965 /apps | |
parent | be27188649c25190aca19e1a4b3dbb58eef129f8 (diff) | |
download | nextcloud-server-7d3e22836575818348c7945a8304463afacfdc4f.tar.gz nextcloud-server-7d3e22836575818348c7945a8304463afacfdc4f.zip |
adding a windows smb config for testing
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_external/tests/env/start-smb-windows.sh | 34 | ||||
-rwxr-xr-x | apps/files_external/tests/env/stop-smb-windows.sh | 18 |
2 files changed, 52 insertions, 0 deletions
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 index 00000000000..d56b0d4f0b5 --- /dev/null +++ b/apps/files_external/tests/env/start-smb-windows.sh @@ -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 index 00000000000..8e9c82b9569 --- /dev/null +++ b/apps/files_external/tests/env/stop-smb-windows.sh @@ -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 |