Debian: Update lighttpd files to handle www relocate

The previous submission to relocate www to var/www here:
https://review.opendev.org/c/starlingx/config-files/+/809454

was partially updated for the .conf file, but these two
files were omitted.  They have now been updated.

The dev/null under the lighttpd chroot (jail) also
needs to be initialized.  'mknod' is used to create that
/var/www/dev/null so that the same special character file
and same permissions are used like the regular /dev/null.

Test Plan:
  Build / Bootstrap / Unlock / Reboot on Debian AIO-SX

Depends-On: https://review.opendev.org/c/starlingx/utilities/+/842917
Story: 2009969
Task: 45364
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Iefce2149042ef121c069af4964826bc685fc2957
changes/18/842918/1
Al Bailey 10 months ago
parent 8a49e1ea4d
commit 8696465d28

@ -54,11 +54,15 @@ start()
done
echo -n "Mounting scratch filesystem to chroot tmp..."
umount /www/tmp >& /dev/null
umount /var/www/tmp >& /dev/null
rm -r /scratch/lighttpd >& /dev/null
mkdir -p /scratch/lighttpd
mount --bind /scratch/lighttpd /www/tmp/
chown www /www/tmp/
mount --bind /scratch/lighttpd /var/www/tmp/
chown www /var/www/tmp/
echo -n "Initialize chroot dev/null for $DESC..."
mkdir -p /var/www/dev
mknod -m 666 /var/www/dev/null c 1 3
echo -n "Starting $DESC..."
@ -86,7 +90,7 @@ stop()
fi
rm -f $PIDFILE
echo -n "Unmounting scratch filesystem from chroot tmp..."
umount /www/tmp
umount /var/www/tmp
}
status()

@ -1,7 +1,7 @@
/var/log/lighttpd-access.log
/var/log/lighttpd-error.log
/www/var/log/lighttpd-access.log
/www/var/log/lighttpd-error.log {
/var/www/var/log/lighttpd-access.log
/var/www/var/log/lighttpd-error.log {
nodateext
size 10M
start 1

Loading…
Cancel
Save