Skip to content

Commit

Permalink
Update env_update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kiloutyg authored Mar 19, 2024
1 parent 9b69155 commit fa6bcd8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion env_update.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#!/bin/bash

# Load the environment variables from the .env file
set -a # automatically export all variables
source .env
set +a

# Create the create-power-bi-ronlyuser.sql file
cat > create-power-bi-ronlyuser.sql <<'EOL'
cat > create-power-bi-ronlyuser.sql <<EOL
CREATE USER 'powerbi'@'%' IDENTIFIED BY 'powerbi';
GRANT SELECT ON {{MYSQL_DATABASE}}.* TO 'powerbi'@'%';
FLUSH PRIVILEGES;
EOL

# Set the Timezone
read -p "What Timezone to use? (default Europe/Paris) " TIMEZONE
if [ -z "${TIMEZONE}" ]
then
Expand Down

0 comments on commit fa6bcd8

Please sign in to comment.