Add logs for extension and font installation

pull/19/head
Nils Bühner 2023-03-01 14:55:03 +01:00
parent bc4fa8fff7
commit 58521a88d8
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ fi
count=`ls -1 $ADDITIONAL_LIBS_DIR/*.jar 2>/dev/null | wc -l` count=`ls -1 $ADDITIONAL_LIBS_DIR/*.jar 2>/dev/null | wc -l`
if [ -d "$ADDITIONAL_LIBS_DIR" ] && [ $count != 0 ]; then if [ -d "$ADDITIONAL_LIBS_DIR" ] && [ $count != 0 ]; then
cp $ADDITIONAL_LIBS_DIR/*.jar $CATALINA_HOME/webapps/geoserver/WEB-INF/lib/ cp $ADDITIONAL_LIBS_DIR/*.jar $CATALINA_HOME/webapps/geoserver/WEB-INF/lib/
echo "Installed $count JAR extension file(s) from the additional libs folder"
fi fi
# copy additional fonts before starting the tomcat # copy additional fonts before starting the tomcat
@ -43,6 +44,7 @@ fi
count=`ls -1 *.ttf 2>/dev/null | wc -l` count=`ls -1 *.ttf 2>/dev/null | wc -l`
if [ -d "$ADDITIONAL_FONTS_DIR" ] && [ $count != 0 ]; then if [ -d "$ADDITIONAL_FONTS_DIR" ] && [ $count != 0 ]; then
cp $ADDITIONAL_FONTS_DIR/*.ttf /usr/share/fonts/truetype/ cp $ADDITIONAL_FONTS_DIR/*.ttf /usr/share/fonts/truetype/
echo "Installed $count TTF font file(s) from the additional fonts folder"
fi fi
# configure CORS (inspired by https://github.com/oscarfonts/docker-geoserver) # configure CORS (inspired by https://github.com/oscarfonts/docker-geoserver)