diff --git a/packages/addons/service/docker/changelog.txt b/packages/addons/service/docker/changelog.txt index c06132df2e3..af58d08bd9a 100644 --- a/packages/addons/service/docker/changelog.txt +++ b/packages/addons/service/docker/changelog.txt @@ -1,3 +1,6 @@ +8.1.111 +- Add temporary cleanup for old systemd service + 8.1.110 - Update to docker 1.12.5 - Adjust the systemd service file diff --git a/packages/addons/service/docker/package.mk b/packages/addons/service/docker/package.mk index 2fcd0529a3e..084d0cd2bf3 100644 --- a/packages/addons/service/docker/package.mk +++ b/packages/addons/service/docker/package.mk @@ -18,7 +18,7 @@ PKG_NAME="docker" PKG_VERSION="1.12.5" -PKG_REV="110" +PKG_REV="111" PKG_ARCH="any" PKG_ADDON_PROJECTS="Generic RPi RPi2 imx6 WeTek_Hub WeTek_Play_2 Odroid_C2" PKG_LICENSE="ASL" diff --git a/packages/addons/service/docker/source/default.py b/packages/addons/service/docker/source/default.py index e76062ff83b..f20849792db 100644 --- a/packages/addons/service/docker/source/default.py +++ b/packages/addons/service/docker/source/default.py @@ -272,6 +272,38 @@ class Main(object): def __init__(self, *args, **kwargs): + ############################# + # Temp cleanup for old method + + restart_docker = False + + if os.path.islink('/storage/.config/system.d/service.system.docker.socket'): + os.remove('/storage/.config/system.d/service.system.docker.socket') + if os.path.islink('/storage/.config/system.d/docker.socket'): + os.remove('/storage/.config/system.d/docker.socket') + + if os.path.islink('/storage/.config/system.d/service.system.docker.service'): + if 'systemd' in os.readlink('/storage/.config/system.d/service.system.docker.service'): + os.remove('/storage/.config/system.d/service.system.docker.service') + restart_docker = True + + if os.path.islink('/storage/.config/system.d/docker.service'): + if 'systemd' in os.readlink('/storage/.config/system.d/docker.service'): + os.remove('/storage/.config/system.d/docker.service') + restart_docker = True + + if os.path.islink('/storage/.config/system.d/multi-user.target.wants/service.system.docker.service'): + if 'systemd' in os.readlink('/storage/.config/system.d/multi-user.target.wants/service.system.docker.service'): + os.remove('/storage/.config/system.d/multi-user.target.wants/service.system.docker.service') + restart_docker = True + + if restart_docker: + oe.execute('systemctl enable /storage/.kodi/addons/service.system.docker/system.d/service.system.docker.service') + oe.execute('systemctl restart /storage/.kodi/addons/service.system.docker/system.d/service.system.docker.service') + + # end temp cleanup + ############################# + monitor = DockerMonitor(self) while not monitor.abortRequested():