Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | daniel-mar | 1 | #!/bin/bash |
2 | |||
3 | read -erp "MySQL Host: " m_host |
||
4 | read -erp "MySQL User: " m_user |
||
5 | read -erp "MySQL Password: " m_pass |
||
6 | read -erp "MySQL Database: " m_base |
||
7 | read -erp "Simulation mode (0 or 1)?: " m_simulation |
||
8 | |||
9 | echo "db_host=${m_host}" > ~/.stam_config |
||
10 | echo "db_user=${m_user}" >> ~/.stam_config |
||
11 | echo "db_pass=${m_pass}" >> ~/.stam_config |
||
12 | echo "db_base=${m_base}" >> ~/.stam_config |
||
13 | echo "" >> ~/.stam_config |
||
14 | echo "simulation=${m_simulation}" >> ~/.stam_config |
||
15 | |||
16 | exit 0 |
||
17 |