-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from twindb/centos7
Bring back CentOS 7
- Loading branch information
Showing
13 changed files
with
105 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
|
||
TB_VERSION=$(PYTHONPATH=/twindb-backup python -c "from twindb_backup import __version__; print __version__") | ||
|
||
wait_time=2 | ||
for _ in $(seq 5) | ||
do | ||
yum clean all | ||
yum -y install /twindb-backup/omnibus/pkg/twindb-backup-"${TB_VERSION}"-1.x86_64.rpm && break | ||
echo "Waiting ${wait_time} seconds before retry" | ||
sleep ${wait_time} | ||
wait_time=$((wait_time * 2)) | ||
done | ||
|
||
set +u | ||
if ! test -z "${DEV}"; then | ||
/bin/cp -R /twindb-backup/twindb_backup /opt/twindb-backup/embedded/lib/python3.9/site-packages | ||
fi | ||
|
||
# MySQL sets random root password. Reset to empty | ||
systemctl stop mysqld | ||
rm -rf /var/lib/mysql | ||
mkdir /var/lib/mysql | ||
mysqld --initialize-insecure | ||
chown -R mysql:mysql /var/lib/mysql | ||
systemctl start mysqld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
|
||
TB_VERSION=$(PYTHONPATH=/twindb-backup python -c "from twindb_backup import __version__; print __version__") | ||
|
||
wait_time=2 | ||
for _ in $(seq 5) | ||
do | ||
yum clean all | ||
yum -y install /twindb-backup/omnibus/pkg/twindb-backup-"${TB_VERSION}"-1.x86_64.rpm && break | ||
echo "Waiting ${wait_time} seconds before retry" | ||
sleep ${wait_time} | ||
wait_time=$((wait_time * 2)) | ||
done | ||
|
||
set +u | ||
if ! test -z "${DEV}"; then | ||
/bin/cp -R /twindb-backup/twindb_backup /opt/twindb-backup/embedded/lib/python3.9/site-packages | ||
fi | ||
|
||
# MySQL sets random root password. Reset to empty | ||
systemctl stop mysqld | ||
rm -rf /var/lib/mysql | ||
mkdir /var/lib/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ class and saves the backup copy in something defined in a destination class. | |
|
||
__author__ = "TwinDB Development Team" | ||
__email__ = "[email protected]" | ||
__version__ = "3.2.1" | ||
__version__ = "3.3.0" | ||
STATUS_FORMAT_VERSION = 1 | ||
LOCK_FILE = "/var/run/twindb-backup.lock" | ||
LOG_FILE = "/var/log/twindb-backup-measures.log" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters