diff options
author | Anjan Nath <kaludios@gmail.com> | 2022-09-19 12:01:40 +0530 |
---|---|---|
committer | Anjan Nath <kaludios@gmail.com> | 2022-09-19 12:08:01 +0530 |
commit | 23195646dc3d9685be75a063434b38b6a14cdcd3 (patch) | |
tree | abe67f6c5ff50eabd2f08e322388085ef8eea78e /contrib/pkginstaller/scripts/preinstall | |
parent | 4e14fa05c9e6ce2ad927e953057294ae05748b37 (diff) | |
download | podman-23195646dc3d9685be75a063434b38b6a14cdcd3.tar.gz podman-23195646dc3d9685be75a063434b38b6a14cdcd3.tar.bz2 podman-23195646dc3d9685be75a063434b38b6a14cdcd3.zip |
pkginstaller: use path_helper to add podman and helpers to path
path_helper(8) appends the contents of /etc/paths.d/podman-pkg to the
PATH env
[NO NEW TESTS NEEDED]
Signed-off-by: Anjan Nath <kaludios@gmail.com>
Diffstat (limited to 'contrib/pkginstaller/scripts/preinstall')
-rwxr-xr-x | contrib/pkginstaller/scripts/preinstall | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/pkginstaller/scripts/preinstall b/contrib/pkginstaller/scripts/preinstall index a381868fc..22336222f 100755 --- a/contrib/pkginstaller/scripts/preinstall +++ b/contrib/pkginstaller/scripts/preinstall @@ -3,3 +3,7 @@ set -e rm -rf /opt/podman + +if [ ! -d "/etc/paths.d" ]; then + mkdir -p /etc/paths.d +fi |