File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 184184# if cf-agent not installed, try cf-remote --version master
185185if [ ! -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
193198fi
194199
195200if [ ! -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
You can’t perform that action at this time.
0 commit comments