Initial repo for search and displace code (written for, rather than the tools used in the processing)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
533 B

#!/usr/bin/env bash
cp "$LOCO_SVC_CFG/conf/magic" "$LOCO_SVC_CFG/conf/mime.types" \
"$LOCO_SVC_VAR/conf/"
REALHTTPDIR=$(dirname $(dirname $(which httpd)))
mkdir -p "$LOCO_SVC_VAR" "$LOCO_SVC_VAR/logs" "$LOCO_SVC_VAR/conf" "$LOCO_SVC_VAR/htdocs"
if [ ! -f "$LOCO_SVC_VAR/htdocs/index.html" ]; then
echo "<html><body>Placeholder</body></html>" > "$LOCO_SVC_VAR/htdocs/index.html"
fi
for SUBDIR in bin cgi-bin error icons modules ;do
[ ! -e "$LOCO_SVC_VAR/$SUBDIR" ] && ln -s "$REALHTTPDIR/$SUBDIR" "$LOCO_SVC_VAR/$SUBDIR"
done