mirror of
https://github.com/containers/podman.git
synced 2025-05-23 18:17:53 +08:00

Instead of unconditionally pulling the x86 binary, clone the repository and build the binary to make it independent of the architecture. Fixes: #2699 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
25 lines
570 B
Bash
Executable File
25 lines
570 B
Bash
Executable File
#!/bin/bash -e
|
|
BASE_PATH="/usr/libexec/podman"
|
|
CATATONIT_PATH="${BASE_PATH}/catatonit"
|
|
CATATONIT_VERSION="v0.1.4"
|
|
|
|
if [ -f $CATATONIT_PATH ]; then
|
|
echo "skipping ... catatonit is already installed"
|
|
else
|
|
echo "installing catatonit to $CATATONIT_PATH"
|
|
buildDir=$(mktemp -d)
|
|
git clone https://github.com/openSUSE/catatonit.git $buildDir
|
|
|
|
pushd $buildDir
|
|
echo `pwd`
|
|
git reset --hard ${CATATONIT_VERSION}
|
|
autoreconf -fi
|
|
./configure
|
|
make
|
|
install ${SELINUXOPT} -d -m 755 $BASE_PATH
|
|
install ${SELINUXOPT} -m 755 catatonit $CATATONIT_PATH
|
|
popd
|
|
|
|
rm -rf $buildDir
|
|
fi
|