Commit 86113320 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 1f90e304
...@@ -34,9 +34,9 @@ mycommand "stop slave" ...@@ -34,9 +34,9 @@ mycommand "stop slave"
myrcommand "show master status\G" myrcommand "show master status\G"
#mycommand "show slave status\G" #mycommand "show slave status\G"
POSITION=$(myrcommand "show master status\G" | grep "Position:" | sed -e "s|.*Position: ||g") POSITION=$(myrcommand "show master status\G" | grep "Position:" | sed -e "s|.*Position: ||g")
MASTERFILE=$(myrcommand "show master status\G" | grep "File:" | sed -e "s|.*File: ||g") MASTERFILE=/var/lib/mysql/db/$(myrcommand "show master status\G" | grep "File:" | sed -e "s|.*File: ||g")
mysql mail -p$PASSWD <mail-dump.sql mysql mail -p$PASSWD <mail-dump.sql
mycommand "CHANGE MASTER TO MASTER_LOG_FILE='$MASTERFILE', MASTER_LOG_POS=$POSITION" #mycommand "CHANGE MASTER TO MASTER_LOG_FILE='$MASTERFILE', MASTER_LOG_POS=$POSITION"
#mycommand "CHANGE MASTER TO MASTER_LOG_POS=$POSITION" mycommand "CHANGE MASTER TO MASTER_LOG_POS=$POSITION"
mycommand "start slave" mycommand "start slave"
mycommand "show slave status\G" mycommand "show slave status\G"
...@@ -42,6 +42,7 @@ copy_to_priv() ...@@ -42,6 +42,7 @@ copy_to_priv()
{ {
scp roundcube.eterhost.ru.crt rt.etersoft.ru.crt sales.etersoft.ru.crt cyradm.eterhost.ru.crt \ scp roundcube.eterhost.ru.crt rt.etersoft.ru.crt sales.etersoft.ru.crt cyradm.eterhost.ru.crt \
sec.office.etersoft.ru.crt time.office.etersoft.ru.crt wiki.office.etersoft.ru.crt \ sec.office.etersoft.ru.crt time.office.etersoft.ru.crt wiki.office.etersoft.ru.crt \
search.office.etersoft.ru.crt \
priv:/etc/nginx/ssl/ || fatal priv:/etc/nginx/ssl/ || fatal
scp "$PRIVATEPEM" priv:/etc/nginx/ssl/etersoft.pem || fatal scp "$PRIVATEPEM" priv:/etc/nginx/ssl/etersoft.pem || fatal
ssh priv service nginx restart ssh priv service nginx restart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment