Files
podman/contrib/pkginstaller/scripts/postinstall
Brent Baude e4a135a6ac Add man pages to Mac installer
This PR adds the man1 pages to the mac installer.  It also sticks a
small configuration file into /usr/local/etc/man.d that allows macos
and the man binary to look for the podman pages in /opt/podman/docs/man.

Fixes #24756

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-12-10 10:05:46 -06:00

13 lines
340 B
Bash
Executable File

#!/bin/bash
set -e
echo "/opt/podman/bin" > /etc/paths.d/podman-pkg
# make sure to ignore errors, this is not a hard requirement to use podman
/opt/podman/bin/podman-mac-helper install || :
# Add pointer to podman docs in manpath
mkdir -p /usr/local/etc/man.d/
echo "MANPATH /opt/podman/docs/man" > /usr/local/etc/man.d/podman.man.conf