Skip to content

Commit

Permalink
cirrus: force-install catatonit
Browse files Browse the repository at this point in the history
A temporary workaround until the CI images are updated.

Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Nov 15, 2021
1 parent 5934e4c commit c8790bf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
7 changes: 7 additions & 0 deletions contrib/cirrus/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ die_unknown() {
die "Unknown/unsupported \$$var_name '$var_value'"
}

msg "************************************************************"
msg "FIXME: force-install catatonit 0.17.0 until CI images are updated"
msg "************************************************************"
# FIXME: this is just a temporary workaround to force-install
# catatonit 0.17.0. Please remove once the images are updated.
./hack/install_catatonit.sh --force

msg "************************************************************"
msg "Setting up runtime environment"
msg "************************************************************"
Expand Down
33 changes: 17 additions & 16 deletions hack/install_catatonit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ CATATONIT_PATH="${BASE_PATH}/catatonit"
CATATONIT_VERSION="v0.1.7"
set -e

if [ -f $CATATONIT_PATH ]; then
if [ -f $CATATONIT_PATH ] && [ -z "$1" ]; 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
exit 0
fi

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
echo "installing catatonit to $CATATONIT_PATH"
buildDir=$(mktemp -d)
git clone https://github.com/openSUSE/catatonit.git $buildDir

rm -rf $buildDir
fi
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

0 comments on commit c8790bf

Please sign in to comment.