Skip to content

Commit 6fb0812

Browse files
Merge pull request #2012 from craigcomstock/ent-13016-rmfix
Fixed build from source in build host setup
2 parents 44585b0 + 91c0a29 commit 6fb0812

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/setup-cfengine-build-host.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,21 @@ fi
184184
# if cf-agent not installed, try cf-remote --version master
185185
if [ ! -x /var/cfengine/bin/cf-agent ]; then
186186
echo "quick install didn't install cf-agent, try cf-remote"
187-
# could try pipx or various package names for different distributions, or uv
187+
# try pipx first for debian as pip won't work.
188+
# If that fails to install CFEngine then try python3-pip for redhats.
188189
if software pipx; then
189190
pipx install cf-remote
190191
export PATH=$HOME/.local/bin:$PATH
192+
elif software python3-pip; then
193+
pip install cf-remote
194+
fi
195+
if command -v cf-remote >/dev/null; then
191196
cf-remote --version master install --clients localhost
192197
fi
193198
fi
194199

195200
if [ ! -x /var/cfengine/bin/cf-agent ]; then
201+
software git
196202
echo "quickinstall and cf-remote didn't install cf-agent, try from source"
197203
CFE_VERSION=3.26.0 # need to use an actualy release which has a checksum for masterfiles download
198204
rm -rf core # just in case we are repeating the script

0 commit comments

Comments
 (0)