start-smb-windows.sh 608 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. #
  3. # ownCloud
  4. #
  5. # Set environment variable DEBUG to print config file
  6. #
  7. # @author Thomas Müller
  8. # @copyright 2015 Thomas Müller <deepdiver@owncloud.com>
  9. #
  10. # retrieve current folder to place the config in the parent folder
  11. thisFolder=`echo $0 | sed 's#env/start-smb-windows\.sh##'`
  12. if [ -z "$thisFolder" ]; then
  13. thisFolder="."
  14. fi;
  15. user=smb-test
  16. password=!owncloud123
  17. host=WIN-9GTFAS08C15
  18. cat > $thisFolder/config.smb.php <<DELIM
  19. <?php
  20. return array(
  21. 'run'=>true,
  22. 'host'=>'$host',
  23. 'user'=>'$user',
  24. 'password'=>'$password',
  25. 'share'=>'oc-test',
  26. 'root'=>'',
  27. );
  28. DELIM