qvm-backup: handle standaloneVM properly
Do not attempt to copy apps.templates; copy apps/ instead.
Tento commit je obsažen v:
rodič
8ecd6134d9
revize
f264b76a61
@ -121,7 +121,12 @@ def main():
|
|||||||
|
|
||||||
files_to_backup += file_to_backup(vm.icon_path)
|
files_to_backup += file_to_backup(vm.icon_path)
|
||||||
if vm.is_updateable():
|
if vm.is_updateable():
|
||||||
|
if os.path.exists(vm.dir_path + "/apps.templates"):
|
||||||
|
# template
|
||||||
files_to_backup += file_to_backup(vm.dir_path + "/apps.templates")
|
files_to_backup += file_to_backup(vm.dir_path + "/apps.templates")
|
||||||
|
else:
|
||||||
|
# standaloneVM
|
||||||
|
files_to_backup += file_to_backup(vm.dir_path + "/apps")
|
||||||
if os.path.exists (vm.firewall_conf):
|
if os.path.exists (vm.firewall_conf):
|
||||||
files_to_backup += file_to_backup(vm.firewall_conf)
|
files_to_backup += file_to_backup(vm.firewall_conf)
|
||||||
if os.path.exists(vm.dir_path + '/whitelisted-appmenus.list'):
|
if os.path.exists(vm.dir_path + '/whitelisted-appmenus.list'):
|
||||||
|
|||||||
Načítá se…
Odkázat v novém úkolu
Zablokovat Uživatele