12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/usr/bin/env bash
- thisFolder=`echo $0 | sed 's#env/start-smb-linux\.sh##'`
- if [ -z "$thisFolder" ]; then
- thisFolder="."
- fi;
- cat > $thisFolder/config.smb.php <<DELIM
- <?php
- return array(
- 'run'=>true,
- 'host'=>'127.0.0.1',
- 'user'=>'test',
- 'password'=>'test',
- 'root'=>'',
- 'share'=>'public',
- );
- DELIM
- echo -n "Waiting for samba initialization"
- if ! "$thisFolder"/env/wait-for-connection 127.0.0.1 445 60; then
- echo "[ERROR] Waited 60 seconds, no response" >&2
- exit 1
- fi
- sleep 1
|