From 34dc495f346f2274d0d8e6ced5f12ee4843f76ba Mon Sep 17 00:00:00 2001 From: Ravi Shah <63246200+Rav4s@users.noreply.github.com> Date: Sat, 31 Oct 2020 10:26:58 -0500 Subject: [PATCH] Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e49ee0c..e62d9ba 100644 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash echo "This script will install the bottlepy web server and allow you to control and monitor the state of your smart garage door opener." sleep 1 @@ -22,7 +22,7 @@ then wget https://raw.githubusercontent.com/Rav4s/Pi-Garage-Door-Opener/master/Python_script_for_garage_door.py sleep 0.5 echo "Editing /etc/rc.local for auto startup..." - sed 'x; ${s/.*/python3 /home/pi/Python_script_for_garage_door.py &/;p;x}; 1d' /etc/rc.local + sudo sed -i 'x; ${s/.*/python3 /home/pi/Python_script_for_garage_door.py &/;p;x}; 1d' /etc/rc.local sleep 0.5 echo "Successful install! Rebooting in 5 seconds!" sleep 5