mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-22 08:21:04 +01:00
Compare commits
No commits in common. "6537626d771bb2484f72f1bb0afa4dd20a9956af" and "69a1ea30aa3c5b55d4833b27904cde0487c3ee6d" have entirely different histories.
6537626d77
...
69a1ea30aa
@ -55,9 +55,8 @@ IMAGES_NO_BACKUP_REQUIRED = [
|
||||
'memcached'
|
||||
]
|
||||
|
||||
# DEFINE CONSTANTS
|
||||
DIRNAME = os.path.dirname(__file__)
|
||||
SCRIPTS_DIRECTORY = pathlib.Path(os.path.realpath(__file__)).parent.parent
|
||||
|
||||
DATABASES = pandas.read_csv(os.path.join(DIRNAME, "databases.csv"), sep=";")
|
||||
REPOSITORY_NAME = os.path.basename(DIRNAME)
|
||||
MACHINE_ID = get_machine_id()
|
||||
@ -92,7 +91,7 @@ def get_instance(container):
|
||||
|
||||
def stamp_directory():
|
||||
"""Stamp a directory using directory-validator."""
|
||||
stamp_command = f"python {SCRIPTS_DIRECTORY}/directory-validator/directory-validator.py --stamp {VERSION_DIR}"
|
||||
stamp_command = f"python ../directory-validator/directory-validator.py --stamp {VERSION_DIR}"
|
||||
try:
|
||||
execute_shell_command(stamp_command)
|
||||
print(f"Successfully stamped directory: {VERSION_DIR}")
|
||||
|
Loading…
Reference in New Issue
Block a user