From b91d35a4267b2a3e0d65a0cdbc0c28aa212ca805 Mon Sep 17 00:00:00 2001 From: rnsrk Date: Fri, 19 Nov 2021 15:02:43 +0100 Subject: [PATCH] add IIPMOOVIEWER install opt --- install_wisski.bash | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/install_wisski.bash b/install_wisski.bash index 5c82e25..42cc365 100755 --- a/install_wisski.bash +++ b/install_wisski.bash @@ -661,6 +661,7 @@ while true; do wget https://github.com/jackmoore/colorbox/archive/refs/heads/master.zip -P web/libraries/ unzip web/libraries/master.zip -d web/libraries/ &> /dev/null mv web/libraries/colorbox-master web/libraries/colorbox + rm web/libraries/master.zip break;; [Nn]* ) echo @@ -775,6 +776,32 @@ while true; do esac done +echo +echo -e "${YELLOW}Do you like to get the IIPMOOViewer?${NC}" +echo + +while true; do + read -p "(y/n): " INSTALLIIPMOOVIEWER + case ${INSTALLIIPMOOVIEWER} in + [Yy]* ) + mkdir -p web/libraries + ## get IIPImageViewer + wget https://github.com/ruven/iipmooviewer/archive/refs/heads/master.zip -P web/libraries/ + unzip web/libraries/master.zip -d web/libraries/ &> /dev/null + mv web/libraries/colorbox-master web/libraries/colorbox + rm web/libraries/master.zip + break;; + [Nn]* ) + echo + echo -e "${GREEN}Okay, you can download it later from:" + echo -e "https://github.com/ruven/iipmooviewer/archive/refs/heads/master.zip" + break;; + * ) echo "Please answer y[es] or n[o].";; + esac +done + + + echo echo -e "${YELLOW}Do you like to get a precompiled Mirador library optimized for WissKI?${NC}" echo