From 6e23ed887fe30edb53f917abc180842e608ca610 Mon Sep 17 00:00:00 2001 From: Mathew Date: Fri, 17 Mar 2017 08:49:58 -0400 Subject: [PATCH] Updates to install script --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6ec8afd..da226a0 100644 --- a/install.sh +++ b/install.sh @@ -6,14 +6,19 @@ Say "Welcome to DoorPi Installer!" # Update and Upgrade the Distro sudo apt-get update -y sudo apt-get upgrade -y +sudo apt-get dist-upgrade -y sudo raspi-config # Download and Install all the needed files from apt-get -LIST_OF_APPS="build-essential python3 python3-pip python3-picamera python3-gpiozero curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5 libjpeg62 apache2 apache2-utils libapache2-mod-php5 php5 php-pear php5-xcache php5-mysql php5-curl php5-gd mysql-client php5-mcrypt motion" # Package name separated by a space +LIST_OF_APPS="build-essential python3 python3-pip python3-picamera python3-gpiozero python3-venv curl git-core libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5 libjpeg62 apache2 apache2-utils libapache2-mod-php5 php5 php-pear php5-xcache php5-mysql php5-curl php5-gd mysql-client php5-mcrypt motion" # Package name separated by a space # Update and install the required packages apt-get install -y $LIST_OF_APPS +# Setup git-core +sudo git config --global user.name "DoorPi" +sudo git config --global user.email mathew@mathewjenkinson.com + # Copy the motion config file(s) from here to the motion source sudo cp -r modules /etc/modules sudo cp -r motion.conf /etc/motion/motion.conf @@ -27,8 +32,11 @@ sudo cp cp -r config.json /etc/doorpi/config.json # Make the DoorPi script Executable sudo chmod +x /etc/doorpi/DoorPiMedia.py +# Install using python3-pip the needed modules +sudo pip3 install boto twilio + # Check the Device can connect to ClusterPi MySQL Server -if ! mysql --host=192.168.1.85 --user=security --password=s3cur1ty 85BatteryPlace; then +if ! mysql --host=192.168.1.85 --user=security --password=s3cur1ty 85batteryplace; then say "Could not connect to House SQL Server" fi -- libgit2 0.21.2