install: linux skip man pages if no mandb - fixes #3175

This commit is contained in:
didil 2019-05-12 11:44:51 +00:00 committed by Nick Craig-Wood
parent a0b9d4a239
commit 296e4936a0

View File

@ -152,9 +152,13 @@ case $OS in
chown root:root /usr/bin/rclone.new
mv /usr/bin/rclone.new /usr/bin/rclone
#manuals
mkdir -p /usr/local/share/man/man1
cp rclone.1 /usr/local/share/man/man1/
mandb
if ! [ -x "$(command -v mandb)" ]; then
echo 'mandb not found. The rclone man docs will not be installed.'
else
mkdir -p /usr/local/share/man/man1
cp rclone.1 /usr/local/share/man/man1/
mandb
fi
;;
'freebsd'|'openbsd'|'netbsd')
#bin