exclude some dirs in docker at update
This commit is contained in:
parent
75ebb0a7f4
commit
3fdc969f39
@ -66,7 +66,7 @@
|
|||||||
g_echo_ok "check for updates"
|
g_echo_ok "check for updates"
|
||||||
# Clean up docker images
|
# Clean up docker images
|
||||||
docker system prune -af
|
docker system prune -af
|
||||||
find /home/docker -maxdepth 1 -mindepth 1 -type d | grep -v "mailcow-dockerized" | while read docker
|
find /home/docker -maxdepth 1 -mindepth 1 -type d | egrep -v "mailcow-dockerized$|.del$|.bak$|.old$|var-lib-docker$" | while read docker
|
||||||
do
|
do
|
||||||
[ -f "$docker/docker-compose.yml" ] || continue
|
[ -f "$docker/docker-compose.yml" ] || continue
|
||||||
g_echo_ok "$docker"
|
g_echo_ok "$docker"
|
||||||
|
Loading…
Reference in New Issue
Block a user