summaryrefslogtreecommitdiff
path: root/rust/scripts/create_db.sh
diff options
context:
space:
mode:
authornil0j <nil.jimeno@estudiant.fjaverianas.com>2024-09-27 17:27:02 +0200
committernil0j <nil.jimeno@estudiant.fjaverianas.com>2024-09-27 17:27:02 +0200
commit4328dd17bfcd4c33a77c4405d52c3660a6c62bf5 (patch)
tree62b48c5088fac13b93a3bcdaa85f4594601cf3fe /rust/scripts/create_db.sh
parentdb58cb58b5d5612ec2aa347d0f8531b26ab2e7f3 (diff)
update
Diffstat (limited to 'rust/scripts/create_db.sh')
-rw-r--r--rust/scripts/create_db.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/scripts/create_db.sh b/rust/scripts/create_db.sh
index cddcdd9..4e6ebc1 100644
--- a/rust/scripts/create_db.sh
+++ b/rust/scripts/create_db.sh
@@ -1,10 +1,11 @@
#!/bin/bash
-echo "choose a password for the database: 'input;"
+echo "choose a password for the database:"
read input
-echo $(pwd)
echo "creating database..."
sudo mariadb -u root <<EOF
$(cat scripts/create_user.sql)
EOF
+echo '$input'
+
sudo mariadb -u root < ./scripts/create_db.sql