diff options
author | nil <nil@tfwhyno.gf> | 2024-10-04 15:57:49 +0200 |
---|---|---|
committer | nil <nil@tfwhyno.gf> | 2024-10-04 15:57:49 +0200 |
commit | 4e6939185b66e09ef7eb351cb87abebae2dc522e (patch) | |
tree | 6002c357bca2d43e6caf1248b4e6f500ad5826b0 | |
parent | 6d57e0d0da0bbe5461acfb0b1809f5d22a5b4fcc (diff) |
fix error: script messed up
-rw-r--r-- | scripts/create_db.sh | 5 |
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 |