This repository has been archived on 2025-06-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
compLIB/postinstall.sh
Joel 134cd3a30e
added more api documentation
new build process
2021-01-16 23:33:09 +01:00

14 lines
No EOL
340 B
Bash

install_package() {
echo "Installing package '$1' via pip3"
pip3 install "$1"
if [ $? -eq 0 ]; then
echo "Successfully installed pip3 package '$1'"
else
echo "Could not install pip3 package '$1'"
exit 1
fi
}
install_package "smbus"
install_package "requests"
install_package "python-logstash-async"