From eb205b89874d0a24f0941d933ef60bb4c29cd9c0 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 25 Nov 2021 10:50:30 +0000 Subject: [PATCH 1/2] Install service on Bullseye for #18 --- install-bullseye.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install-bullseye.sh b/install-bullseye.sh index 7968fdf..14d53eb 100755 --- a/install-bullseye.sh +++ b/install-bullseye.sh @@ -234,6 +234,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" From 1faf1fe5208ca7e96c8f7aa19021c823fedfacf0 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 31 Jan 2022 12:33:47 +0000 Subject: [PATCH 2/2] Pass --unstable flag to install-bullseye.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2a6e5c9..21def79 100755 --- a/install.sh +++ b/install.sh @@ -13,7 +13,7 @@ UNSTABLE=false CODENAME=`lsb_release -sc` if [[ $CODENAME == "bullseye" ]]; then - bash ./install-bullseye.sh + bash ./install-bullseye.sh $@ exit $? fi