server/apps/files_external/tests/env/start-smb-windows.sh
2015-09-27 13:03:31 +02:00

34 lines
616 B
Bash
Executable file

#!/usr/bin/env 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 | sed 's#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