mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[wip] Be able to readd a repo before postinstall
This commit is contained in:
parent
74d34b5d28
commit
ffc0c8d22e
3 changed files with 7 additions and 8 deletions
|
@ -1377,9 +1377,7 @@ backup:
|
|||
--keep-within:
|
||||
help: Keep all archives within this time interval
|
||||
extra:
|
||||
pattern: &pattern_interval
|
||||
- !!str ^\d+[Hdw]$
|
||||
- "pattern_interval"
|
||||
pattern: *pattern_interval
|
||||
|
||||
### backup_timer_update()
|
||||
update:
|
||||
|
@ -1429,9 +1427,7 @@ backup:
|
|||
--keep-within:
|
||||
help: Keep all archives within this time interval
|
||||
extra:
|
||||
pattern: &pattern_interval
|
||||
- !!str ^\d+[Hdw]$
|
||||
- "pattern_interval"
|
||||
pattern: *pattern_interval
|
||||
|
||||
### backup_timer_remove()
|
||||
remove:
|
||||
|
|
|
@ -76,6 +76,7 @@ def check_command_is_valid_before_postinstall(args):
|
|||
"tools postinstall",
|
||||
"tools versions",
|
||||
"tools shell",
|
||||
"backup repository",
|
||||
"backup list",
|
||||
"backup restore",
|
||||
"log display",
|
||||
|
|
|
@ -115,8 +115,10 @@ class BackupRepository(ConfigPanel):
|
|||
return full_repositories
|
||||
|
||||
def __init__(self, entity, config_path=None, save_path=None, creation=False):
|
||||
if self.entity is None:
|
||||
self.entity = settings_get("misc.backup.backup_default_repositories")[0]
|
||||
|
||||
if entity is None:
|
||||
entity = settings_get("misc.backup.backup_default_repositories")[0]
|
||||
|
||||
super().__init__(entity, config_path, save_path, creation)
|
||||
|
||||
self._load_current_values()
|
||||
|
|
Loading…
Add table
Reference in a new issue