From c8217f80e547bc7666cb9e39ebdbba752f2b011b Mon Sep 17 00:00:00 2001 From: Yervand Aghababyan Date: Sat, 25 Mar 2023 12:37:26 -0700 Subject: [PATCH] Making sure additional fonts are correctly counted Currently the additional fonts installation fails as they are wrongly counted in the startup.sh script. --- startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index a0637ef..be5f51e 100755 --- a/startup.sh +++ b/startup.sh @@ -41,7 +41,7 @@ fi # copy additional fonts before starting the tomcat # we also count whether at least one file with the fonts exists -count=`ls -1 *.ttf 2>/dev/null | wc -l` +count=`ls -1 $ADDITIONAL_FONTS_DIR/*.ttf 2>/dev/null | wc -l` if [ -d "$ADDITIONAL_FONTS_DIR" ] && [ $count != 0 ]; then cp $ADDITIONAL_FONTS_DIR/*.ttf /usr/share/fonts/truetype/ echo "Installed $count TTF font file(s) from the additional fonts folder"