mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
[Travis] Bypass the prompt while purging mysql
This commit is contained in:
parent
4851619838
commit
04de9cd7a7
@ -6,9 +6,7 @@ python:
|
||||
- "2.7"
|
||||
|
||||
install:
|
||||
- sudo apt-get remove --purge --force-yes mysql-common mysql-server mysql-client
|
||||
- sudo apt-get autoremove
|
||||
- sudo apt-get autoclean
|
||||
- sudo apt-get purge -y mysql-common mysql-server mysql-client
|
||||
- sudo python $TRAVIS_BUILD_DIR/installer/install.py --user travis --skip-bench-setup
|
||||
# - sudo bash $TRAVIS_BUILD_DIR/install_scripts/setup_frappe.sh --skip-install-bench --mysql-root-password travis
|
||||
- mkdir -p ~/bench-repo
|
||||
|
@ -10,7 +10,9 @@
|
||||
- localhost
|
||||
|
||||
- name: Add .my.cnf
|
||||
template: src=my.cnf.j2 dest=/root/.my.cnf owner=root group=root mode=0600
|
||||
command: '/usr/bin/whoami'
|
||||
register: current_user
|
||||
template: src=my.cnf.j2 dest=/home/{{ current_user }}/.my.cnf owner=root group=root mode=0600
|
||||
|
||||
- name: Set root Password
|
||||
mysql_user: name=root host={{ item }} password={{ mysql_root_password }} state=present
|
||||
|
Loading…
Reference in New Issue
Block a user