Update Installer-with-debug
This commit is contained in:
		| @@ -25,8 +25,10 @@ if [ "$digit" != 2 ] && [ "$digit" != 3 ]; then | |||||||
| fi | fi | ||||||
|  |  | ||||||
| if [ "$digit" = 2 ] || [ "$digit" = 3 ]; then | if [ "$digit" = 2 ] || [ "$digit" = 3 ]; then | ||||||
|     echo "Your input was accepted" |     echo "" | ||||||
|     echo "The installer will do the rest now. You can enjoy a break in the meanwhile." |     echo -e "\e[1;36m"Your input was accepted"\e[0m" | ||||||
|  |     echo -e "\e[1;36m"The installer will do the rest now. You can enjoy a break in the meanwhile."\e[0m" | ||||||
|  |     echo "" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| # Updating and upgrading the system, without taking too much space | # Updating and upgrading the system, without taking too much space | ||||||
| @@ -34,6 +36,7 @@ echo -e "\e[1;36m"Running apt-get update and apt-get dist-upgrade for you..."\e[ | |||||||
| echo -e "\e[1;36m"This will take a while, sometimes up to 30 mins"\e[0m" | echo -e "\e[1;36m"This will take a while, sometimes up to 30 mins"\e[0m" | ||||||
| sudo apt-get update > /dev/null && sudo apt-get dist-upgrade -y > /dev/null | sudo apt-get update > /dev/null && sudo apt-get dist-upgrade -y > /dev/null | ||||||
| echo -e "\e[1;36m"System successfully updated and upgraded!"\e[0m" | echo -e "\e[1;36m"System successfully updated and upgraded!"\e[0m" | ||||||
|  | echo "" | ||||||
|  |  | ||||||
| # Installing a few packages which are missing on Raspbian Stretch Lite | # Installing a few packages which are missing on Raspbian Stretch Lite | ||||||
| echo -e "\e[1;36m"Installing a few packages that are missing on Raspbian Stretch Lite..."\e[0m" | echo -e "\e[1;36m"Installing a few packages that are missing on Raspbian Stretch Lite..."\e[0m" | ||||||
| @@ -47,10 +50,12 @@ sudo pip3 install Pillow | |||||||
| sudo apt-get install libopenjp2-7-dev -y  | sudo apt-get install libopenjp2-7-dev -y  | ||||||
| sudo apt install libtiff5 -y | sudo apt install libtiff5 -y | ||||||
| } > /dev/null | } > /dev/null | ||||||
|  | echo "" | ||||||
|  |  | ||||||
| # Running apt-get clean and apt-get autoremove | # Running apt-get clean and apt-get autoremove | ||||||
| echo -e "\e[1;36m"Cleaning a bit of mess to free up some space..."\e[0m" | echo -e "\e[1;36m"Cleaning a bit of mess to free up some space..."\e[0m" | ||||||
| sudo apt-get clean > /dev/null && sudo apt-get autoremove -y > /dev/null | sudo apt-get clean > /dev/null && sudo apt-get autoremove -y > /dev/null | ||||||
|  | echo "" | ||||||
|  |  | ||||||
| # Using this part for the 2-colour E-Paper version | # Using this part for the 2-colour E-Paper version | ||||||
| if [ "$digit" = 2 ]; then | if [ "$digit" = 2 ]; then | ||||||
| @@ -65,6 +70,7 @@ if [ "$digit" = 2 ]; then | |||||||
|     cp -r .git /home/pi/E-Paper-Master/ |     cp -r .git /home/pi/E-Paper-Master/ | ||||||
|     cd |     cd | ||||||
|     sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather |     sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather | ||||||
|  |     echo "" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| # Using this part for the 3-colour E-Paper version | # Using this part for the 3-colour E-Paper version | ||||||
| @@ -79,6 +85,7 @@ if [ "$digit" = 3 ]; then | |||||||
|     cp -r .git /home/pi/E-Paper-Master/ |     cp -r .git /home/pi/E-Paper-Master/ | ||||||
|     cd |     cd | ||||||
|     sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather |     sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather | ||||||
|  |     echo "" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| # Installing packages required by the main script | # Installing packages required by the main script | ||||||
| @@ -89,6 +96,7 @@ sudo pip3 install ics | |||||||
| pip3 install pyowm | pip3 install pyowm | ||||||
| pip3 install ics | pip3 install ics | ||||||
| } > /dev/null | } > /dev/null | ||||||
|  | echo "" | ||||||
|  |  | ||||||
| # Setting up supervisor | # Setting up supervisor | ||||||
| echo -e "\e[1;36m"Setting up the script to start at boot..."\e[0m" | echo -e "\e[1;36m"Setting up the script to start at boot..."\e[0m" | ||||||
| @@ -102,6 +110,7 @@ stderr_logfile = /home/pi/E-Paper-Master/E-Paper-err.log | |||||||
| EOF | EOF | ||||||
|  |  | ||||||
| sudo service supervisor start E-Paper | sudo service supervisor start E-Paper | ||||||
|  | echo "" | ||||||
|  |  | ||||||
| # Final words | # Final words | ||||||
| echo -e "\e[1;36m"The install was successful"\e[0m" | echo -e "\e[1;36m"The install was successful"\e[0m" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user