(simatec) reindex added
This commit is contained in:
parent
4bbe4f5eda
commit
d153e46675
1 changed files with 38 additions and 21 deletions
59
update.sh
59
update.sh
|
@ -246,27 +246,44 @@ else
|
||||||
docker-compose up --force-recreate --build -d
|
docker-compose up --force-recreate --build -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
|
||||||
echo "${greenBold}${HLINE}"
|
|
||||||
echo "${greenBold} Piler Update completed successfully"
|
|
||||||
echo "${greenBold}${HLINE}${normal}"
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo "${greenBold}${HLINE}${HLINE_SMALL}"
|
|
||||||
|
|
||||||
if [ "$USE_LETSENCRYPT" = "yes" ]; then
|
while true; do
|
||||||
echo "${greenBold}you can start in your Browser with https://${PILER_DOMAIN}!"
|
read -ep "Do you want to perform the Reindex?? (y/n): " yn
|
||||||
else
|
case $yn in
|
||||||
echo "${greenBold}you can start in your Browser with:"
|
[Yy]* ) echo "${greenBold}********* Reindex started... Please wait... *********${normal}"; break;;
|
||||||
echo "${greenBold}http://${PILER_DOMAIN} or http://local-ip"
|
[Nn]* ) echo -e "${redBold} Update without Reindex!${normal}"; finish_info;;
|
||||||
fi
|
* ) echo -e "${redBold} Please confirm with y or n.${normal}";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
echo "${greenBold}${HLINE}${HLINE_SMALL}${normal}"
|
BLA::start_loading_animation "${BLA_metro[@]}"
|
||||||
|
docker exec -u piler -w /var/tmp piler reindex -a
|
||||||
|
BLA::stop_loading_animation
|
||||||
|
finish_info
|
||||||
|
|
||||||
echo
|
function finish_info {
|
||||||
echo "${blue}${HLINE}"
|
echo
|
||||||
echo "${blue}You can remove the old unused containers on your system!"
|
echo "${greenBold}${HLINE}"
|
||||||
echo "${blue}Execute the following command: docker system prune"
|
echo "${greenBold} Piler Update completed successfully"
|
||||||
echo "${blue}${HLINE}${normal}"
|
echo "${greenBold}${HLINE}${normal}"
|
||||||
echo
|
echo
|
||||||
exit 0
|
echo
|
||||||
|
echo "${greenBold}${HLINE}${HLINE_SMALL}"
|
||||||
|
|
||||||
|
if [ "$USE_LETSENCRYPT" = "yes" ]; then
|
||||||
|
echo "${greenBold}you can start in your Browser with https://${PILER_DOMAIN}!"
|
||||||
|
else
|
||||||
|
echo "${greenBold}you can start in your Browser with:"
|
||||||
|
echo "${greenBold}http://${PILER_DOMAIN} or http://local-ip"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "${greenBold}${HLINE}${HLINE_SMALL}${normal}"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "${blue}${HLINE}"
|
||||||
|
echo "${blue}You can remove the old unused containers on your system!"
|
||||||
|
echo "${blue}Execute the following command: docker system prune"
|
||||||
|
echo "${blue}${HLINE}${normal}"
|
||||||
|
echo
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue