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
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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