summaryrefslogtreecommitdiff
path: root/localserver
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-12 23:13:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-12 23:13:10 +0300
commit3e566681c06a3f02b73aabcfeb0a752df8eccc69 (patch)
treecd8aab794c752bda638e977a13fe289db80ef574 /localserver
parent41cf1ec75522dbc8e34d3ce308b6f6ec82ed1022 (diff)
downloadevol-tools-3e566681c06a3f02b73aabcfeb0a752df8eccc69.tar.gz
evol-tools-3e566681c06a3f02b73aabcfeb0a752df8eccc69.tar.bz2
evol-tools-3e566681c06a3f02b73aabcfeb0a752df8eccc69.tar.xz
evol-tools-3e566681c06a3f02b73aabcfeb0a752df8eccc69.zip
Add workaround to initdb script for ubuntu 15.04+
Diffstat (limited to 'localserver')
-rwxr-xr-xlocalserver/initdb.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/localserver/initdb.sh b/localserver/initdb.sh
index df8d81d..40358e1 100755
--- a/localserver/initdb.sh
+++ b/localserver/initdb.sh
@@ -5,6 +5,11 @@ cd ../../server-data/sql-files
echo Creating db and user...
echo Enter mysql root password:
mysql --force -u root -p <./init.sql
+result=$?
+if [ "$result" != 0 ]; then
+ echo Password failed. Trying with sudo...
+ sudo mysql --force -u root <./init.sql
+fi
export CMD="mysql -u evol -pevol evol"