Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Commit

Permalink
よりパスワードを求めるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
keloud committed Feb 7, 2018
1 parent 9058b2f commit 94caf6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions irohaBoard_Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ sed -e 's/mysql/'sqlPass'/' ./irohaBoard_Installer_MySQL.cnf

echo "Set irohaBoard root Password"
read -sp "Password: " irohaPass
sed -e 's/irohaPass/'irohaPass'/' ./irohaBoard_Installer_MySQL.sql

echo "Set irohaBoard remote Password"
read -sp "Password: " irohaRemotePass
sed -e 's/irohaRemotePass/'irohaRemotePass'/' ./irohaBoard_Installer_MySQL.sql

echo -e "\e[33m Package\e[m"
echo -e "\e[34m Package Update\e[m"
Expand Down
6 changes: 3 additions & 3 deletions irohaBoard_Installer_MySQL.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE DATABASE ib;
GRANT ALL PRIVILEGES ON ib.* TO ib_user@localhost
IDENTIFIED BY 'f1b3f805a8b4ea6d35f2de4c4fbaf3df1caaaf94';
GRANT ALL PRIVILEGES ON ib.* TO ib_remote@'%'
IDENTIFIED BY 'ib-remote';
IDENTIFIED BY 'irohaPass';
GRANT ALL PRIVILEGES ON ib.* TO ib_remote@localhost
IDENTIFIED BY 'irohaRemotePass';
FLUSH PRIVILEGES;

0 comments on commit 94caf6f

Please sign in to comment.