Update boop-keys/setup-boop.sh
This commit is contained in:
parent
1618243ac8
commit
8818d8f2bb
1 changed files with 4 additions and 4 deletions
|
@ -6,10 +6,10 @@ mysql -u root -e "CREATE DATABASE IF NOT EXISTS oauth_provider;"
|
||||||
password=$(openssl rand -base64 32)
|
password=$(openssl rand -base64 32)
|
||||||
password=$(echo $password | sed 's/[^a-zA-Z0-9]//g')
|
password=$(echo $password | sed 's/[^a-zA-Z0-9]//g')
|
||||||
echo $password > /home/coder/oauth-provider/.dbpass
|
echo $password > /home/coder/oauth-provider/.dbpass
|
||||||
mysqladmin -u root password $password
|
mysqladmin -u root password $password 2>&1 | grep -V "Warning"
|
||||||
mysql -u root -p$password -e "CREATE USER 'oauth_provider'@'%' IDENTIFIED BY '$password';"
|
mysql -u root -p$password -e "CREATE USER 'oauth_provider'@'%' IDENTIFIED BY '$password';" 2>&1 | grep -V "Warning"
|
||||||
mysql -u root -p$password -e "GRANT ALL PRIVILEGES ON oauth_provider.* TO 'oauth_provider'@'%';"
|
mysql -u root -p$password -e "GRANT ALL PRIVILEGES ON oauth_provider.* TO 'oauth_provider'@'%';" 2>&1 | grep -V "Warning"
|
||||||
mysql -u root -p$password -e "FLUSH PRIVILEGES;"
|
mysql -u root -p$password -e "FLUSH PRIVILEGES;" 2>&1 | grep -V "Warning"
|
||||||
chown coder:coder /home/coder/oauth-provider/.dbpass
|
chown coder:coder /home/coder/oauth-provider/.dbpass
|
||||||
|
|
||||||
echo "[BOOTSTRAP] DB Configured, setting up .env file..."
|
echo "[BOOTSTRAP] DB Configured, setting up .env file..."
|
||||||
|
|
Loading…
Reference in a new issue