aboutsummaryrefslogtreecommitdiff
path: root/hack/install_catatonit.sh
blob: 1ba399d1971b5b260d66bb7d79fbafc4b5e9573e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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 "downloading catatonit to $CATATONIT_PATH"
	curl -o catatonit -L https://github.com/openSUSE/catatonit/releases/download/$CATATONIT_VERSION/catatonit.x86_64
	chmod +x catatonit
	install ${SELINUXOPT} -d -m 755 $BASE_PATH
	install ${SELINUXOPT} -m 755 catatonit $CATATONIT_PATH
	rm catatonit
fi