Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
86113320
Commit
86113320
authored
Dec 15, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fixes
parent
1f90e304
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
mysql_repl_restore.sh
auth/mysql_repl_restore.sh
+3
-3
copy_certs_to_hosts.sh
certs/copy_certs_to_hosts.sh
+1
-0
No files found.
auth/mysql_repl_restore.sh
View file @
86113320
...
@@ -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
"
certs/copy_certs_to_hosts.sh
View file @
86113320
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment