mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-07-12 21:45:47 +00:00
improvements
* multi-sign and multi-web configuration * change default configuration to do not use architecture * change units to be templated * some refactoring
This commit is contained in:
@ -26,8 +26,8 @@ class Rsync(Uploader):
|
||||
|
||||
def __init__(self, architecture: str, config: Configuration) -> None:
|
||||
Uploader.__init__(self, architecture, config)
|
||||
section = self.config.get_section_name('rsync', self.architecture)
|
||||
self.remote = self.config.get(section, 'remote')
|
||||
section = config.get_section_name('rsync', architecture)
|
||||
self.remote = config.get(section, 'remote')
|
||||
|
||||
def sync(self, path: str) -> None:
|
||||
check_output('rsync', '--archive', '--verbose', '--compress', '--partial', '--progress', '--delete', path, self.remote,
|
||||
|
Reference in New Issue
Block a user