[update.sh] Missing echo, more information
This commit is contained in:
parent
bdfaef09c6
commit
6d981b7f8d
@ -132,6 +132,7 @@ echo -e "\e[32mStarting mailcow...\e[0m"
|
|||||||
sleep 2
|
sleep 2
|
||||||
docker-compose up -d --remove-orphans
|
docker-compose up -d --remove-orphans
|
||||||
|
|
||||||
|
echo -e "\e[32mCollecting garbage...\e[0m"
|
||||||
IMGS_TO_DELETE=()
|
IMGS_TO_DELETE=()
|
||||||
for container in $(grep -oP "image: \Kmailcow.+" docker-compose.yml); do
|
for container in $(grep -oP "image: \Kmailcow.+" docker-compose.yml); do
|
||||||
REPOSITORY=${container/:*}
|
REPOSITORY=${container/:*}
|
||||||
@ -164,11 +165,11 @@ if [[ ! -z ${IMGS_TO_DELETE[*]} ]]; then
|
|||||||
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
||||||
docker rmi ${IMGS_TO_DELETE[*]}
|
docker rmi ${IMGS_TO_DELETE[*]}
|
||||||
else
|
else
|
||||||
"OK, skipped."
|
echo "OK, skipped."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
echo -e "\e[32mFurther cleanup...\e[0m"
|
||||||
echo -e "\e[32mIf you want to cleanup further garbage collected by Docker, please make sure all containers are up and running before cleaning your system by executing \"docker system prune\".\e[0m"
|
echo "If you want to cleanup further garbage collected by Docker, please make sure all containers are up and running before cleaning your system by executing \"docker system prune\""
|
||||||
|
|
||||||
#echo "In case you encounter any problem, hard-reset to a state before updating mailcow:"
|
#echo "In case you encounter any problem, hard-reset to a state before updating mailcow:"
|
||||||
#echo
|
#echo
|
||||||
|
Loading…
Reference in New Issue
Block a user