(MINOR) clearup in postinstall

This commit is contained in:
Joel Klimont 2022-10-06 20:54:27 +02:00
parent 807ea8e561
commit c62b22aa0a

View file

@ -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"