Skip to content

Commit f9acf7f

Browse files
author
Magnu5
committed
add check for python3-pip, service will not start without it
1 parent ff7d539 commit f9acf7f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

examples/install-service.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ if ! [ -f "/usr/bin/python3" ]; then
1919
exit 1
2020
fi
2121

22+
if ! [ -f "/usr/bin/python3-pip" ]; then
23+
printf "Fan SHIM controller requires Python 3\n"
24+
printf "You should run: 'sudo apt install python3'\n"
25+
exit 1
26+
fi
27+
2228
while [[ $# -gt 0 ]]; do
2329
K="$1"
2430
case $K in

0 commit comments

Comments
 (0)