init.sh 701 B

1234567891011121314151617181920
  1. #! /bin/bash
  2. PWD=`pwd`
  3. MYSQL_LOCAL_DIR=${PWD}/db
  4. sudo rm -rf $MYSQL_LOCAL_DIR
  5. echo -en "" > SETTINGS
  6. echo "export MYSQL_LOCAL_DIR=$MYSQL_LOCAL_DIR" >> SETTINGS
  7. echo "export MYSQL_ROOT_PASSWORD=123" >> SETTINGS
  8. echo "export MYSQL_USER=barin" >> SETTINGS
  9. echo "export MYSQL_PASSWORD=12345" >> SETTINGS
  10. echo "export MYSQL_DATABASE=barindb" >> SETTINGS
  11. echo "export MYSQL_LOCAL_PORT=3307" >> SETTINGS
  12. echo "export MYSQL_LOCAL_HOST=127.0.0.1" >> SETTINGS
  13. echo "export ADMINER_LOCAL_PORT=8081" >> SETTINGS
  14. echo "export TOKEN=\"MyToKeN\"" >> SETTINGS
  15. echo "export OUTLINE_API_URL=\"API\"" >> SETTINGS
  16. echo "export PWD=\"$PWD\"" >> SETTINGS
  17. #echo "export HTTP_PROXY=http://kiselyov.avp.ru:3128" >> SETTINGS