Only enable lighttpd config once, not on every upgrade.
This commit is contained in:
parent
06cdc5071b
commit
5ba613dd44
3
debian/dump1090-fa.postinst
vendored
3
debian/dump1090-fa.postinst
vendored
|
@ -35,6 +35,8 @@ case "$1" in
|
|||
adduser "$RUNAS" plugdev
|
||||
|
||||
# set up lighttpd
|
||||
if dpkg --compare-versions "$2" lt "3.1.0"
|
||||
then
|
||||
echo "Enabling lighttpd integration.." >&2
|
||||
lighty-enable-mod dump1090-fa || true
|
||||
|
||||
|
@ -45,6 +47,7 @@ case "$1" in
|
|||
echo "Enabling lighttpd integration (stat cache).." >&2
|
||||
lighty-enable-mod dump1090-fa-statcache || true
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Restarting lighttpd.." >&2
|
||||
invoke-rc.d lighttpd restart || true
|
||||
|
|
Loading…
Reference in a new issue