Skip to content

Commit 5cb1c55

Browse files
committed
Use full faasd binary path in instructions on RHEL
On RHEL systems the installation path of faasd, /usr/local/bin, is not in the sudo PATH by default. Use the full path to the faasd binary in any printed instruction to work around this.
1 parent d7dd45d commit 5cb1c55

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

hack/install-edge.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ ${BINLOCATION}arkade oci install --path ${tmpdir} \
9595
cd ${tmpdir}
9696
./install.sh ./
9797

98+
isRHEL=$(has_dnf)
99+
binaryName="faasd"
100+
if [ "$isRHEL" = true ]; then
101+
binaryName="/usr/local/bin/faasd"
102+
fi
103+
98104
echo ""
99105
echo "3.1 Commercial users can create their license key as follows:"
100106
echo ""
@@ -103,12 +109,12 @@ echo "sudo nano /var/lib/faasd/secrets/openfaas_license"
103109
echo ""
104110
echo "3.2 For personal, non-commercial use only, GitHub Sponsors of @openfaas (25USD+) can run:"
105111
echo ""
106-
echo "sudo -E faasd github login"
107-
echo "sudo -E faasd activate"
112+
echo "sudo -E ${binaryName} github login"
113+
echo "sudo -E ${binaryName} activate"
108114
echo ""
109115
echo "4. Then perform the final installation steps"
110116
echo ""
111-
echo "sudo -E sh -c \"cd ${tmpdir}/var/lib/faasd && faasd install\""
117+
echo "sudo -E sh -c \"cd ${tmpdir}/var/lib/faasd && ${binaryName} install\""
112118
echo ""
113119
echo "5. Refer to the complete handbook and supplementary documentation at:"
114120
echo ""

0 commit comments

Comments
 (0)