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
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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