Slight changes
parent
2c8a5ce3f8
commit
51011732c7
|
@ -48,7 +48,7 @@ if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Stopping mailcow... "
|
echo -e "Stopping mailcow... "
|
||||||
# Stopping mailcow
|
sleep 2
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
||||||
# Silently fixing remote url from andryyy to mailcow
|
# Silently fixing remote url from andryyy to mailcow
|
||||||
|
@ -80,18 +80,20 @@ elif [[ ${MERGE_RETURN} != 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\e[32mFetching new images, if any...\e[0m"
|
echo -e "\e[32mFetching new images, if any...\e[0m"
|
||||||
|
sleep 2
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
echo
|
|
||||||
|
|
||||||
# Fix missing SSL, does not overwrite existing files
|
# Fix missing SSL, does not overwrite existing files
|
||||||
[[ ! -d data/assets/ssl ]] && mkdir -p data/assets/ssl
|
[[ ! -d data/assets/ssl ]] && mkdir -p data/assets/ssl
|
||||||
cp -n data/assets/ssl-example/*.pem data/assets/ssl/
|
cp -n data/assets/ssl-example/*.pem data/assets/ssl/
|
||||||
|
|
||||||
echo -e "\e[32mFetching new docker-compose version...\e[0m"
|
echo -e "\e[32mFetching new docker-compose version...\e[0m"
|
||||||
|
sleep 2
|
||||||
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > $(which docker-compose)
|
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > $(which docker-compose)
|
||||||
chmod +x $(which docker-compose)
|
chmod +x $(which docker-compose)
|
||||||
|
|
||||||
echo -e "\e[32mStarting mailcow...\e[0m"
|
echo -e "\e[32mStarting mailcow...\e[0m"
|
||||||
|
sleep 2
|
||||||
docker-compose up -d --remove-orphans
|
docker-compose up -d --remove-orphans
|
||||||
#echo -e "\e[32mCleaning up Docker objects...\e[0m"
|
#echo -e "\e[32mCleaning up Docker objects...\e[0m"
|
||||||
if docker images -f "dangling=true" | grep ago --quiet; then
|
if docker images -f "dangling=true" | grep ago --quiet; then
|
||||||
|
|
Loading…
Reference in New Issue