summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/env/start-smb-windows.sh
blob: a5a19ff1bcf21b4e2ab6a772bc3b895b0cfe90de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 | 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