Skip to content

Commit 556facc

Browse files
committed
setup-all.sh ok
1 parent 2fc4d75 commit 556facc

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: _setup-all.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# ou usando pip:
1212
# python setup.py sdist bdist_wheel
13-
# pip install dist/mctest-1.0.0.tar.gz
13+
# pip install dist/mctest-5.2.tar.gz # isso está com BUG ainda
1414

1515
# se ainda nao fez, baixar o mctest da pasta, mudando fz pelo seu login
1616
mkdir /home/fz/PycharmProjects/
@@ -47,11 +47,7 @@ source ../AmbientePython3/bin/activate
4747

4848
# Instala o MySQL
4949
sudo apt install -y mysql-server
50-
51-
sudo apt install -y debconf-utils
52-
# Define a senha do MySQL para o pacote mysql-server-8.0
53-
sudo debconf-set-selections <<< 'mysql-server-8.0 mysql-server/root_password password ' $DB_PASS
54-
sudo debconf-set-selections <<< 'mysql-server-8.0 mysql-server/root_password_again password ' $DB_PASS
50+
sudo mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$DB_PASS';"
5551

5652
# Atualiza a lista de pacotes
5753
sudo apt-get update

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup
44

55
# Executa o script shell
6-
subprocess.call(['./_setup-all.sh'])
6+
subprocess.call(['/bin/bash', './_setup-all.sh'])
77

88
setup(
99
name='mctest',

0 commit comments

Comments
 (0)