From 457246da9b5f8bdcff082fef49362b678224359e Mon Sep 17 00:00:00 2001 From: "Pirker, Hannes" Date: Fri, 15 Dec 2023 16:03:05 +0100 Subject: [PATCH] run_lighttpd.sh: allow to be a comma-separate list; use corpinfo -p to retrieve PATH --- noske_crystal/run_lighttpd.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/noske_crystal/run_lighttpd.sh b/noske_crystal/run_lighttpd.sh index 2cd170a..8ece2ec 100644 --- a/noske_crystal/run_lighttpd.sh +++ b/noske_crystal/run_lighttpd.sh @@ -6,11 +6,12 @@ if [ ! "$(ls -A /var/www/crystal)" ]; then cp -R /var/www/crystal.init/* /var/www/crystal sed -i "s~URL_BONITO: \"http://localhost/~URL_SKE_LI: \"about:blank\", URL_CA: \"about:blank\", URL_BONITO: \"${BROWSER_URL_BONITO:-}/~g" /var/www/crystal/config.js fi -for corp in $CORPLIST -do path=$(grep -h ^PATH $MANATEE_REGISTRY/$corp | sed -e 's/^PATH[^"]*"\(.*\)"$/\1/g') +## corplist can be a comma-separated list! +for corp in $(echo $CORPLIST | perl -pe 's/,/ /g'); do +path=$(corpinfo -p $corp) if [ ! -d $path ] || [ ! "$(ls -A $path)" ] then mkdir -p $path; compilecorp $corp fi done exec 3>&1 -exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D \ No newline at end of file +exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D