From c259686f4fdb791e874b754c625fc53dec0d699e Mon Sep 17 00:00:00 2001 From: kakious Date: Fri, 21 Jul 2023 13:42:33 -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 4108f52..31b5157 100644 --- a/boop-keys/setup-boop.sh +++ b/boop-keys/setup-boop.sh @@ -6,10 +6,10 @@ mysql -u root -e "CREATE DATABASE IF NOT EXISTS oauth_provider;" password=$(openssl rand -base64 32) password=$(echo $password | sed 's/[^a-zA-Z0-9]//g') echo $password > /home/coder/oauth-provider/.dbpass -mysqladmin -u root password $password 2>&1 | grep -V "Warning" -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'@'%';" 2>&1 | grep -V "Warning" -mysql -u root -p$password -e "FLUSH PRIVILEGES;" 2>&1 | grep -V "Warning" +mysqladmin -u root password $password 2>&1 | grep -v "Warning" +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'@'%';" 2>&1 | grep -v "Warning" +mysql -u root -p$password -e "FLUSH PRIVILEGES;" 2>&1 | grep -v "Warning" chown coder:coder /home/coder/oauth-provider/.dbpass echo "[BOOTSTRAP] DB Configured, setting up .env file..."