Commit 6e23ed887fe30edb53f917abc180842e608ca610
1 parent
50fa14a9
Updates to install script
Showing
1 changed file
with
10 additions
and
2 deletions
Show diff stats
install.sh
... | ... | @@ -6,14 +6,19 @@ Say "Welcome to DoorPi Installer!" |
6 | 6 | # Update and Upgrade the Distro |
7 | 7 | sudo apt-get update -y |
8 | 8 | sudo apt-get upgrade -y |
9 | +sudo apt-get dist-upgrade -y | |
9 | 10 | sudo raspi-config |
10 | 11 | |
11 | 12 | # Download and Install all the needed files from apt-get |
12 | -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 | |
13 | +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 | |
13 | 14 | |
14 | 15 | # Update and install the required packages |
15 | 16 | apt-get install -y $LIST_OF_APPS |
16 | 17 | |
18 | +# Setup git-core | |
19 | +sudo git config --global user.name "DoorPi" | |
20 | +sudo git config --global user.email mathew@mathewjenkinson.com | |
21 | + | |
17 | 22 | # Copy the motion config file(s) from here to the motion source |
18 | 23 | sudo cp -r modules /etc/modules |
19 | 24 | sudo cp -r motion.conf /etc/motion/motion.conf |
... | ... | @@ -27,8 +32,11 @@ sudo cp cp -r config.json /etc/doorpi/config.json |
27 | 32 | # Make the DoorPi script Executable |
28 | 33 | sudo chmod +x /etc/doorpi/DoorPiMedia.py |
29 | 34 | |
35 | +# Install using python3-pip the needed modules | |
36 | +sudo pip3 install boto twilio | |
37 | + | |
30 | 38 | # Check the Device can connect to ClusterPi MySQL Server |
31 | -if ! mysql --host=192.168.1.85 --user=security --password=s3cur1ty 85BatteryPlace; then | |
39 | +if ! mysql --host=192.168.1.85 --user=security --password=s3cur1ty 85batteryplace; then | |
32 | 40 | say "Could not connect to House SQL Server" |
33 | 41 | fi |
34 | 42 | ... | ... |