Skip to content

Commit

Permalink
updated to latest tag and better handled uninstall process
Browse files Browse the repository at this point in the history
  • Loading branch information
Mhynlo committed Jul 5, 2017
1 parent 577364b commit 9f8ff5c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
portainer (1.13.4) stable; urgency=medium

* Updating to the latest tag
* Fixed uninstall process in cases where docker is not installed.

-- Mhynlo <[email protected]> Wed, 05 Jul 2017 13:36:36 -0700

portainer (1.13.2) stable; urgency=medium

* Updated systemd config to no error on exit
Expand Down
2 changes: 1 addition & 1 deletion debian/preinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#--DockerUI--#
docker pull portainer/portainer:1.13.2
docker pull portainer/portainer:1.13.4
/usr/bin/docker run -d -p 9001:9000 --name=portainermgmt -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer:1.13.2
/usr/bin/docker stop portainermgmt
19 changes: 16 additions & 3 deletions debian/prerm
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#--DockerUI--#
docker stop portainermgmt
docker rm portainermgmt
docker rmi portainer/portainer:1.13.2
dockerContainerName="portainermgmt"

if docker ps -f name=$(dockerContainerName) | grep $(dockerContainerName)
then
docker stop $(dockerContainerName)
fi

if docker stats --no-stream | grep $(dockerContainerName)
then
docker rm $(dockerContainerName)
fi

if docker image ls | grep portainer/portainer
then
docker rmi portainer/portainer:1.13.4
fi

0 comments on commit 9f8ff5c

Please sign in to comment.