diff --git a/supervisor/host/apparmor.py b/supervisor/host/apparmor.py index 5ce0e86ed..bd411b12d 100644 --- a/supervisor/host/apparmor.py +++ b/supervisor/host/apparmor.py @@ -73,7 +73,7 @@ class AppArmorControl(CoreSysAttributes): # Copy to AppArmor folder dest_profile = Path(self.sys_config.path_apparmor, profile_name) try: - shutil.copy(profile_file, dest_profile) + shutil.copyfile(profile_file, dest_profile) except OSError as err: _LOGGER.error("Can't copy %s: %s", profile_file, err) raise HostAppArmorError() from None diff --git a/supervisor/supervisor.py b/supervisor/supervisor.py index 0f4666649..ee5be07b1 100644 --- a/supervisor/supervisor.py +++ b/supervisor/supervisor.py @@ -115,7 +115,7 @@ class Supervisor(CoreSysAttributes): _LOGGER.info("Update Supervisor to version %s", version) try: - await self.instance.update(version, latest=True) + await self.instance.install(version, image=None, latest=True) except DockerAPIError: _LOGGER.error("Update of Supervisor fails!") raise SupervisorUpdateError() from None