post_install() { if [[ ! -d run/lighttpd ]]; then usr/bin/systemd-tmpfiles --create lighttpd.conf fi #adjust permissions of /data/storage/disk0/media/tmp/ chmod 1777 /data/storage/disk0/media/tmp/ echo "Generate lighttpd include..." gen_light_include.py echo "Forcing a re-read of lighttpd's configuration file..." /sbin/sv hup /service/lighttpd } post_upgrade() { post_install }