From f660ab5da217057a3742c2f3b9950983119a488f Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 18 Sep 2020 09:56:44 +0100 Subject: [PATCH] Prompt to install service --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 6837697..2130ff2 100755 --- a/install.sh +++ b/install.sh @@ -188,6 +188,17 @@ if [ -d "examples" ]; then 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!" 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"