summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-11-12 20:54:39 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2024-11-12 20:54:39 +0100
commit5e875ca22341821a9897092b7b9e656a7405ef32 (patch)
tree761b5f525eeacd3c632d242c292396ceca71c4f5 /scripts
parent6a762589e2f557cb1b2096c6e8d888129c3e2fca (diff)
parent4e6939185b66e09ef7eb351cb87abebae2dc522e (diff)
Merge branch 'master' of niliara.net:balalaika
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create_db.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/create_db.sh b/scripts/create_db.sh
index ecd239e..29404c1 100644
--- a/scripts/create_db.sh
+++ b/scripts/create_db.sh
@@ -9,9 +9,8 @@ if [[ $answer == 'y' ]] then
sudo="sudo"
fi
-echo "creating database..."
-$sudo $mariadb -u root <<EOF
+$sudo mariadb -u root <<EOF
CREATE OR REPLACE USER 'balalaika_user'@'%' IDENTIFIED BY '$input';
EOF
-$sudo $mariadb -u root < ./scripts/create_db.sql
+$sudo mariadb -u root < ./scripts/create_db.sql