|
|
@ -15,7 +15,7 @@ spec.loader.exec_module(ls) |
|
|
db = ls.DATABASES |
|
|
db = ls.DATABASES |
|
|
ldb = db.get('default') |
|
|
ldb = db.get('default') |
|
|
print('%s %s %s %s %d' % (ldb['NAME'], ldb['USER'], |
|
|
print('%s %s %s %s %d' % (ldb['NAME'], ldb['USER'], |
|
|
ldb['PASSWORD'], ldb['HOST'], ldb['PORT']))"` |
|
|
|
|
|
|
|
|
ldb['PASSWORD'], ldb['HOST'], ldb.get('PORT', 3306)))"` |
|
|
|
|
|
|
|
|
if ! ping -c 1 ${mysql_host} &> /dev/null; then |
|
|
if ! ping -c 1 ${mysql_host} &> /dev/null; then |
|
|
echo "Host ${mysql_host} is not accessible" |
|
|
echo "Host ${mysql_host} is not accessible" |
|
|
@ -46,4 +46,4 @@ flow-cat /tmp/djing_flow/dump/*/*.dmp | ./djing_flow -i ${tmp_ipuser_file} -c | |
|
|
|
|
|
|
|
|
rm -f ${tmp_ipuser_file} |
|
|
rm -f ${tmp_ipuser_file} |
|
|
rm -f /tmp/djing_flow/dump/*/*.dmp |
|
|
rm -f /tmp/djing_flow/dump/*/*.dmp |
|
|
rm -f /tmp/djing_flow/*/ft* |
|
|
|
|
|
|
|
|
rm -f /tmp/djing_flow/*/ft* |