Add more info to update script
parent
0f023cffed
commit
4503a76a28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue