api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.sh 1.1KB

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # install software
  3. cd /root; git clone https://github.com/mevdschee/php-crud-api.git
  4. # download phpunit 4.8 for PHP < 5.6
  5. cd php-crud-api; wget https://phar.phpunit.de/phpunit-4.8.phar -O phpunit.phar
  6. # copy dist config to config
  7. cp tests/Config.php.dist tests/Config.php
  8. # replace variables
  9. sed -i 's/{{mysql_hostname}}/localhost/g' tests/Config.php
  10. sed -i 's/{{mysql_username}}/php-crud-api/g' tests/Config.php
  11. sed -i 's/{{mysql_password}}/php-crud-api/g' tests/Config.php
  12. sed -i 's/{{mysql_database}}/php-crud-api/g' tests/Config.php
  13. sed -i 's/{{pgsql_hostname}}/localhost/g' tests/Config.php
  14. sed -i 's/{{pgsql_username}}/php-crud-api/g' tests/Config.php
  15. sed -i 's/{{pgsql_password}}/php-crud-api/g' tests/Config.php
  16. sed -i 's/{{pgsql_database}}/php-crud-api/g' tests/Config.php
  17. sed -i 's/{{sqlite_hostname}}//g' tests/Config.php
  18. sed -i 's/{{sqlite_username}}//g' tests/Config.php
  19. sed -i 's/{{sqlite_password}}//g' tests/Config.php
  20. sed -i 's/{{sqlite_database}}/tests\/sqlite.db/g' tests/Config.php
  21. # move comments
  22. sed -i 's/\/\* Uncomment/\/\/ Uncomment/g' tests/Config.php
  23. sed -i "s/'SQLServer'/\/\* 'SQLServer'/g" tests/Config.php