(MINOR) clearup in postinstall
This commit is contained in:
parent
807ea8e561
commit
c62b22aa0a
1 changed files with 0 additions and 19 deletions
|
@ -4,25 +4,6 @@ if [ $? -ne 0 ]; then
|
|||
sed -i "2s/^/apt update\n/" /etc/rc.local
|
||||
fi
|
||||
|
||||
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 "flask"
|
||||
#install_package "python-logstash-async"
|
||||
#install_package "RPi.GPIO"
|
||||
#install_package "spidev"
|
||||
#install_package "influxdb_client"
|
||||
|
||||
pip3 install requests flask
|
||||
|
||||
#echo "Setting up opencv4"
|
||||
|
|
Reference in a new issue