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.

config.sh 404B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. script_path=$(readlink -f $0)
  3. dir_path=$(dirname $script_path)
  4. get_conf(){
  5. while IFS= read -r line ;
  6. do
  7. cf_key=`echo $line | awk 'BEGIN {FS = "="} {print $1}'`
  8. cf_val=`echo $line | awk 'BEGIN {FS = "="} {print $2}'`
  9. eval $cf_key=$cf_val
  10. done < $1
  11. }
  12. get_conf test.conf
  13. if [ "$1" ]
  14. then
  15. address=$1
  16. fi
  17. if [ "$2" ]
  18. then
  19. username=$2
  20. fi
  21. if [ "$3" ]
  22. then
  23. password=$3
  24. fi