Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
run_lighttpd.sh: allow to be a comma-separate list; use corpinfo -p t…
Browse files Browse the repository at this point in the history
…o retrieve PATH
  • Loading branch information
Pirker, Hannes committed Dec 15, 2023
1 parent 38c17ac commit 457246d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions noske_crystal/run_lighttpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
exec /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf -D

0 comments on commit 457246d

Please sign in to comment.