config is in nginx-common 1.14.0-0ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
logdir="/var/log/nginx"
log_symlinks_check() {
# Skip new installations
[ -z "$1" ] && return
# Skip unaffected installations
dpkg --compare-versions "$1" lt-nl "1.10.2-1~" || return 0
# Check for unsecure symlinks
linked_logfiles="` find "$logdir" -type l -user www-data -name '*.log' `"
# Skip if nothing is found
[ -z "$linked_logfiles" ] && return
db_subst nginx/log-symlinks logfiles $linked_logfiles
db_input high nginx/log-symlinks || true
db_go || true
}
case "$1" in
configure|reconfigure)
log_symlinks_check "$2"
;;
*)
;;
esac
# vim: set ts=4 sts=4 sw=4 et sta ai :
|