You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-20 01:42:27 +03:00
ColumnStore now uses standard bin/lib paths for pretty much everything. Data path is now hard-coded to /var/lib/columnstore. This patch also: * Removes v1 decompression * Removes a bunch of unneeded files * Removes COLUMNSTORE_INSTALL_DIR / $INSTALLDIR * Makes my.cnf.d work for all platforms (MCOL-3558) * Changes configcpp to use recursive mutex (fixes possible config write deadlock) * Fixes MCOL-3599 Fix regr functions, The library was installed in the wrong location * Fixes a bunch of Ubuntu packaging issues * Changes the binary names of several of the executables so as not to clash with potential executables from other packages
84 lines
2.3 KiB
Bash
Executable File
84 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/expect
|
|
#
|
|
# $Id: rsync.sh 2915 2012-05-23 16:01:34Z dhill $
|
|
#
|
|
# Remote Install RPM and custom OS files from postConfigure script
|
|
# Argument 1 - Remote Server Host Name or IP address
|
|
# Argument 2 - Root Password of remote server
|
|
# Argument 3 - Debug flag 1 for on, 0 for off
|
|
set SERVER [lindex $argv 0]
|
|
set PASSWORD [lindex $argv 1]
|
|
set DEBUG 0
|
|
set DEBUG [lindex $argv 3]
|
|
log_user $DEBUG
|
|
spawn -noecho /bin/bash
|
|
|
|
if {[info exists env(USER)]} {
|
|
set USERNAME $env(USER)
|
|
} else {
|
|
set USERNAME "root"
|
|
}
|
|
|
|
|
|
if { $PASSWORD == "ssh" } {
|
|
set PASSWORD ""
|
|
}
|
|
|
|
# LinuxJedi: Not sure what this is expecting to be copying, but it probably shouldn't be doing it
|
|
# set COMMAND "rsync -vopgr -e ssh --exclude=mysql/ --exclude=test/ --exclude=infinidb_vtable/ --exclude=infinidb_querystats/ --exclude=calpontsys/ --include=*/ --include=*/* --exclude=* $INSTALLDIR/mysql/db/ $USERNAME@$SERVER:$INSTALLDIR/mysql/db/"
|
|
|
|
#
|
|
# run command
|
|
#
|
|
set timeout 20
|
|
send "$COMMAND\n"
|
|
expect {
|
|
-re "Host key verification failed" { send_user "FAILED: Host key verification failed\n" ; exit -1}
|
|
-re "service not known" { send_user " FAILED: Invalid Host\n" ; exit -1}
|
|
-re "ssh: connect to host" { send_user " FAILED: Invalid Host\n" ; exit -1 }
|
|
-re "authenticity" { send "yes\n"
|
|
expect {
|
|
-re "word: " { send "$PASSWORD\n" }
|
|
-re "passphrase" { send "$PASSWORD\n" }
|
|
}
|
|
}
|
|
-re "word: " { send "$PASSWORD\n" }
|
|
-re "passphrase" { send "$PASSWORD\n" }
|
|
-re "failed" { send_user " FAILED: Failure, check tmp log\n" ; exit 1 }
|
|
-re "Permission denied" { send_user " FAILED: Invalid password\n" ; exit 1 }
|
|
-re "total size" {} abort
|
|
}
|
|
expect {
|
|
-re "failed" { send_user " FAILED: Failure, check tmp log\n" ; exit 1 }
|
|
-re "Permission denied" { send_user " FAILED: Invalid password\n" ; exit 1 }
|
|
-re "total size" {} abort
|
|
|
|
}
|
|
|
|
set HOME "$env(HOME)"
|
|
|
|
if {[file exist $HOME/.my.cnf]} {
|
|
|
|
set COMMAND "rsync -vopgr -e ssh $HOME/.my.cnf $USERNAME@$SERVER:$HOME/"
|
|
|
|
#
|
|
# run command
|
|
#
|
|
set timeout 10
|
|
send "$COMMAND\n"
|
|
expect {
|
|
-re "word: " { send "$PASSWORD\n" }
|
|
-re "passphrase" { send "$PASSWORD\n" }
|
|
-re "total size" {} abort
|
|
-re "failed" { exit 0 }
|
|
timeout { exit 0 }
|
|
}
|
|
expect {
|
|
-re "total size" {} abort
|
|
-re "failed" { exit 0 }
|
|
timeout { exit 0 }
|
|
}
|
|
}
|
|
|
|
exit 0
|