Skip to content
Snippets Groups Projects
Commit 7d3e2283 authored by Thomas Müller's avatar Thomas Müller
Browse files

adding a windows smb config for testing

parent be271886
Branches
No related tags found
No related merge requests found
#!/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
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment