Add more info to update script

master
andryyy 2017-06-21 12:40:42 +02:00
parent 0f023cffed
commit 4503a76a28
1 changed files with 2 additions and 5 deletions

View File

@ -82,18 +82,15 @@ echo -e "\e[32mFetching new images, if any...\e[0m"
docker-compose pull
echo
#echo -e "\e[32mHashes to revert to:\e[0m"
#git reflog --color=always | grep "Before update on "
# TODO: Menu, select hard reset, select reset to "before update" etc.
#git reset --hard origin/${BRANCH}
# Fix missing SSL, does not overwrite existing files
[[ ! -d data/assets/ssl ]] && mkdir -p data/assets/ssl
cp -n data/assets/ssl-example/*.pem data/assets/ssl/
echo -e "\e[32mFetching new docker-compose version...\e[0m"
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)
echo -e "\e[32mStarting mailcow...\e[0m"
docker-compose up -d --remove-orphans
#echo -e "\e[32mCleaning up Docker objects...\e[0m"
if docker images -f "dangling=true" | grep ago --quiet; then