You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
move mysql install scripts to module-installer
This commit is contained in:
@@ -152,6 +152,14 @@ if test -f $INFINIDB_INSTALL_DIR/mysql/my.cnf ; then
|
||||
$INFINIDB_INSTALL_DIR/bin/mycnfUpgrade $mysqlPort > /tmp/mycnfUpgrade_port.log 2>&1
|
||||
fi
|
||||
|
||||
# if um, run mysql install scripts
|
||||
if [ $module = "um" ]; then
|
||||
echo "Run post-mysqld-install"
|
||||
$INFINIDB_INSTALL_DIR/bin/post-mysqld-install > /tmp/post-mysqld-install.log 2>&1
|
||||
echo "Run post-mysql-install"
|
||||
$INFINIDB_INSTALL_DIR/bin/post-mysql-install > /tmp/post-mysql-install.log 2>&1
|
||||
fi
|
||||
|
||||
|
||||
echo " "
|
||||
echo "!!!Module Installation Successfully Completed!!!"
|
||||
|
@@ -281,7 +281,7 @@ if { $INSTALLTYPE == "initial"} {
|
||||
"passphrase" { send "$PASSWORD\n" }
|
||||
}
|
||||
}
|
||||
set timeout 30
|
||||
set timeout 200
|
||||
expect {
|
||||
"!!!Module" { send_user "DONE" }
|
||||
"FAILED" { send_user "ERROR: missing OS file\n" ; exit 1 }
|
||||
@@ -290,44 +290,6 @@ if { $INSTALLTYPE == "initial"} {
|
||||
}
|
||||
send_user "\n"
|
||||
set timeout 30
|
||||
expect -re {[$#] }
|
||||
#
|
||||
# run mysql setup scripts
|
||||
#
|
||||
send_user "Run MySQL Setup Scripts on Module "
|
||||
send "ssh $USERNAME@$SERVER '$BASH $INSTALLDIR/bin/post-mysqld-install'\n"
|
||||
if { $PASSWORD != "ssh" } {
|
||||
set timeout 60
|
||||
expect {
|
||||
"word: " { send "$PASSWORD\n" }
|
||||
"passphrase" { send "$PASSWORD\n" }
|
||||
}
|
||||
}
|
||||
set timeout 60
|
||||
expect {
|
||||
"Connection closed" { send_user "ERROR: Connection closed\n" ; exit 1 }
|
||||
}
|
||||
set timeout 30
|
||||
expect -re {[$#] }
|
||||
#
|
||||
send "ssh $USERNAME@$SERVER '$BASH $INSTALLDIR/bin/post-mysql-install $MYSQLPW'\n"
|
||||
if { $PASSWORD != "ssh" } {
|
||||
set timeout 30
|
||||
expect {
|
||||
"word: " { send "$PASSWORD\n" }
|
||||
"passphrase" { send "$PASSWORD\n" }
|
||||
}
|
||||
}
|
||||
set timeout 60
|
||||
expect {
|
||||
"Shutting down mysql." { send_user "DONE" }
|
||||
-re {[$#] } { send_user "DONE" }
|
||||
timeout { send_user "DONE" }
|
||||
"Connection closed" { send_user "ERROR: Connection closed\n" ; exit 1 }
|
||||
"ERROR" { send_user "ERROR: Check mysql logs and /tmp/mysql_install.log\n" ; exit 1 }
|
||||
}
|
||||
send_user "\n"
|
||||
set timeout 30
|
||||
#expect -re {[$#] }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user