Prevent install script from adding manpage entries if they alraedy exists.

This commit is contained in:
Christoph 2018-01-06 12:58:47 +01:00
parent 1b5883564b
commit d615d15df8

View File

@ -1398,7 +1398,7 @@ fi
## - special for debian. set manpath entries ## - special for debian. set manpath entries
## - ## -
if [ -f /etc/manpath.config ];then if [ -f /etc/manpath.config ];then
if ! grep /usr/local/php/man /etc/manpath.config > /dev/null 2<&1 ; then if ! grep /usr/local/php/php/man /etc/manpath.config > /dev/null 2<&1 ; then
echo >> /etc/manpath.config echo >> /etc/manpath.config
echo "MANDATORY_MANPATH /usr/local/php/php/man /var/cache/man" >> /etc/manpath.config echo "MANDATORY_MANPATH /usr/local/php/php/man /var/cache/man" >> /etc/manpath.config
echo "MANPATH_MAP /usr/local/php/bin /usr/local/php/php/man" >> /etc/manpath.config echo "MANPATH_MAP /usr/local/php/bin /usr/local/php/php/man" >> /etc/manpath.config