Merge pull request #19 from pimoroni/patch-bullseye-service

Install service on Bullseye for #18
This commit is contained in:
Philip Howard
2022-01-31 12:46:31 +00:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -234,6 +234,17 @@ if [ -d "examples" ]; then
fi fi
fi fi
if [ -d "service" ]; then
inform "Grow includes a service that runs on boot and monitors your plants."
if confirm "Would you like to install the service?"; then
cd service
sudo ./install.sh
echo "rm /usr/bin/grow" >> $UNINSTALLER
echo "rm -r /usr/share/grow-monitor" >> $UNINSTALLER
echo "rm /etc/default/grow" >> $UNINSTALLER
fi
fi
success "\nAll done!" success "\nAll done!"
inform "If this is your first time installing you should reboot for hardware changes to take effect.\n" inform "If this is your first time installing you should reboot for hardware changes to take effect.\n"
inform "Find uninstall steps in $UNINSTALLER\n" inform "Find uninstall steps in $UNINSTALLER\n"

View File

@@ -13,7 +13,7 @@ UNSTABLE=false
CODENAME=`lsb_release -sc` CODENAME=`lsb_release -sc`
if [[ $CODENAME == "bullseye" ]]; then if [[ $CODENAME == "bullseye" ]]; then
bash ./install-bullseye.sh bash ./install-bullseye.sh $@
exit $? exit $?
fi fi