[Update] Stop mailcow before update

master
andryyy 2017-09-16 23:24:30 +02:00
parent fcc6bcc4b3
commit f7ff93a499
1 changed files with 5 additions and 5 deletions

View File

@ -74,15 +74,15 @@ else
exit 1 exit 1
fi fi
read -r -p "Are you sure you want to update mailcow: dockerized? [y/N] " response read -r -p "Are you sure you want to update mailcow: dockerized? All containers will be stoped. [y/N] " response
if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
echo "OK, exiting." echo "OK, exiting."
exit 0 exit 0
fi fi
#echo -e "Stopping mailcow... " echo -e "Stopping mailcow... "
#sleep 2 sleep 2
#docker-compose down docker-compose down
# Silently fixing remote url from andryyy to mailcow # Silently fixing remote url from andryyy to mailcow
git remote set-url origin https://github.com/mailcow/mailcow-dockerized git remote set-url origin https://github.com/mailcow/mailcow-dockerized
@ -170,7 +170,7 @@ if [[ ! -z ${IMGS_TO_DELETE[*]} ]]; then
echo echo
echo " docker rmi ${IMGS_TO_DELETE[*]}" echo " docker rmi ${IMGS_TO_DELETE[*]}"
echo echo
read -r -p "Do you want to delete old image tags right now? [Y/n] " response read -r -p "Do you want to delete old image tags right now? [y/N] " response
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