From a08476370f21ad17a79db6188a2e6e5f43dfffb0 Mon Sep 17 00:00:00 2001 From: kakious Date: Fri, 21 Jul 2023 09:01:00 -0700 Subject: [PATCH] Update boop-keys/setup-boop.sh --- boop-keys/setup-boop.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boop-keys/setup-boop.sh b/boop-keys/setup-boop.sh index 597795d..8c405ae 100644 --- a/boop-keys/setup-boop.sh +++ b/boop-keys/setup-boop.sh @@ -5,10 +5,10 @@ echo "[BOOTSTRAP] Running initial setup for BOOP..." mysql -u root -e "CREATE DATABASE IF NOT EXISTS oauth_provider;" password=$(openssl rand -base64 32) echo $password > /home/coder/oauth-provider/.dbpass -mysqladmin -u root password $password -mysql -u root -p$password -e "CREATE USER 'oauth_provider'@'%' IDENTIFIED BY '$password';" -mysql -u root -p$password -e "GRANT ALL PRIVILEGES ON oauth_provider.* TO 'oauth_provider'@'%';" -mysql -u root -p$password -e "FLUSH PRIVILEGES;" +mysqladmin -u root password $password 2>&1 /dev/null +mysql -u root -p$password -e "CREATE USER 'oauth_provider'@'%' IDENTIFIED BY '$password';" 2>&1 /dev/null +mysql -u root -p$password -e "GRANT ALL PRIVILEGES ON oauth_provider.* TO 'oauth_provider'@'%';" 2>&1 /dev/null +mysql -u root -p$password -e "FLUSH PRIVILEGES;" 2>&1 /dev/null chown coder:coder /home/coder/oauth-provider/.dbpass echo "[BOOTSTRAP] DB Configured, setting up .env file..."