Remove man page for pihole-FTL

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-05-30 21:39:10 +02:00
parent 137e6dc184
commit f7b9d70054
3 changed files with 5 additions and 162 deletions
+5 -3
View File
@@ -1253,12 +1253,14 @@ install_manpage() {
fi
# Testing complete, copy the files & update the man db
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/manpages/pihole.8 /usr/local/share/man/man8/pihole.8
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/manpages/pihole-FTL.8 /usr/local/share/man/man8/pihole-FTL.8
# remove previously installed "pihole-FTL.conf.5" man page
# remove previously installed man pages
if [[ -f "/usr/local/share/man/man5/pihole-FTL.conf.5" ]]; then
rm /usr/local/share/man/man5/pihole-FTL.conf.5
fi
if [[ -f "/usr/local/share/man/man5/pihole-FTL.8" ]]; then
rm /usr/local/share/man/man5/pihole-FTL.8
fi
if mandb -q &>/dev/null; then
# Updated successfully
@@ -1267,7 +1269,7 @@ install_manpage() {
else
# Something is wrong with the system's man installation, clean up
# our files, (leave everything how we found it).
rm /usr/local/share/man/man8/pihole.8 /usr/local/share/man/man8/pihole-FTL.8
rm /usr/local/share/man/man8/pihole.8
printf "%b %b man page db not updated, man pages not installed\\n" "${OVER}" "${CROSS}"
fi
}