hmmmm
This commit is contained in:
4
main.py
4
main.py
@@ -28,7 +28,7 @@ def arguments_parser():
|
|||||||
help='configuration file for BackandUp. By default it looks for a configuration.ini '
|
help='configuration file for BackandUp. By default it looks for a configuration.ini '
|
||||||
'in its folder. It must contains the configuration for the backup service '
|
'in its folder. It must contains the configuration for the backup service '
|
||||||
'and can also contains the BackandUp own configuration.')
|
'and can also contains the BackandUp own configuration.')
|
||||||
parser.add_argument('--compose', action='store', default='./docker-compose.yml',
|
parser.add_argument('--composefile', action='store', default='./docker-compose.yml',
|
||||||
help='compose file to parse. By default it looks for a docker-compose.yml in its folder.')
|
help='compose file to parse. By default it looks for a docker-compose.yml in its folder.')
|
||||||
parser.add_argument('--sshfolder', action='store', default='~/.ssh',
|
parser.add_argument('--sshfolder', action='store', default='~/.ssh',
|
||||||
help='ssh folder for sftp connection. By default it uses ~/.ssh.')
|
help='ssh folder for sftp connection. By default it uses ~/.ssh.')
|
||||||
@@ -48,7 +48,7 @@ def read_config_file(filepath: str = "configuration.ini"):
|
|||||||
|
|
||||||
if "backandup" in parser:
|
if "backandup" in parser:
|
||||||
if "composefile" in parser["backandup"]:
|
if "composefile" in parser["backandup"]:
|
||||||
arguments.compose = parser["backandup"]["composefile"]
|
arguments.composefile = parser["backandup"]["composefile"]
|
||||||
if "composefile" in parser["backandup"]:
|
if "composefile" in parser["backandup"]:
|
||||||
arguments.sshfolder = parser["backandup"]["sshfolder"]
|
arguments.sshfolder = parser["backandup"]["sshfolder"]
|
||||||
if "composefile" in parser["backandup"]:
|
if "composefile" in parser["backandup"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user