Updated some links
This commit is contained in:
		| @@ -27,28 +27,28 @@ if [ "$option" = 3 ]; then | |||||||
|     fi |     fi | ||||||
|     echo -e "The libraries have been removed successfully" |     echo -e "The libraries have been removed successfully" | ||||||
|     echo -e "Removing the E-Paper-Calendar folder if it exists" |     echo -e "Removing the E-Paper-Calendar folder if it exists" | ||||||
|     if [ -d "/home/pi/E-Paper-Master" ]; then |     if [ -d "/home/pi/E-Paper-Calendar" ]; then | ||||||
|         sudo rm -r /home/pi/E-Paper-Master/ |         sudo rm -r /home/pi/E-Paper-Calendar/ | ||||||
|     fi |     fi | ||||||
| fi | fi | ||||||
|  |  | ||||||
| if [ "$option" = 1 ]; then | if [ "$option" = 1 ]; then | ||||||
|     echo "Checking if the settings.py exists..." |     echo "Checking if the settings.py exists..." | ||||||
|     if [ -e /home/pi/E-Paper-Master/Calendar/settings.py ]; then |     if [ -e /home/pi/E-Paper-Calendar/Calendar/settings.py ]; then | ||||||
|         echo -e "Found an E-Paper settings file." |         echo -e "Found an E-Paper settings file." | ||||||
|         sleep 2 |         sleep 2 | ||||||
| 	echo "Backing up the current settings file in the home directory." | 	echo "Backing up the current settings file in the home directory." | ||||||
| 	sleep 2 | 	sleep 2 | ||||||
| 	cp /home/pi/E-Paper-Master/Calendar/settings.py /home/pi/settings-old.py | 	cp /home/pi/E-Paper-Calendar/Calendar/settings.py /home/pi/settings-old.py | ||||||
| 	echo -e "renaming the old E-Paper software folder" | 	echo -e "renaming the old E-Paper software folder" | ||||||
| 	sleep 2 | 	sleep 2 | ||||||
| 	cp -r /home/pi/E-Paper-Master /home/pi/E-Paper-Master-old | 	cp -r /home/pi/E-Paper-Calendar /home/pi/E-Paper-Calendar-old | ||||||
| 	sudo rm -r /home/pi/E-Paper-Master | 	sudo rm -r /home/pi/E-Paper-Calendar | ||||||
| 	echo "Updating now..." | 	echo "Updating now..." | ||||||
| 	echo -e "\e[1;36m"Installing the E-Paper-Calendar Software for your display"\e[0m" | 	echo -e "\e[1;36m"Installing the E-Paper-Calendar Software for your display"\e[0m" | ||||||
|         cd |         cd | ||||||
|     else |     else | ||||||
|         echo -e "Could not find any settings.py file in /home/pi/E-Paper-Master/Calendar" |         echo -e "Could not find any settings.py file in /home/pi/E-Paper-Calendar/Calendar" | ||||||
| 	echo -e "Please uninstall the software first and then use the install option" | 	echo -e "Please uninstall the software first and then use the install option" | ||||||
| 	echo -e "Exiting now" | 	echo -e "Exiting now" | ||||||
| 	exit | 	exit | ||||||
| @@ -91,32 +91,32 @@ fi | |||||||
| if [ "$option" = 1 ] || [ "$option" = 2 ]; then | if [ "$option" = 1 ] || [ "$option" = 2 ]; then | ||||||
|     echo -e "\e[1;36m"Installing the E-Paper-Calendar Software for your display"\e[0m" |     echo -e "\e[1;36m"Installing the E-Paper-Calendar Software for your display"\e[0m" | ||||||
|     cd |     cd | ||||||
|     git clone https://github.com/aceisace/E-Paper-Calendar-with-iCal-sync-and-live-weather |     git clone https://github.com/aceisace/Inky-Calendar | ||||||
|     mkdir E-Paper-Master |     mkdir E-Paper-Calendar | ||||||
|     cd E-Paper-Calendar-with-iCal-sync-and-live-weather |     cd Inky-Calendar | ||||||
|     cp -r Calendar /home/pi/E-Paper-Master/ |     cp -r Calendar /home/pi/E-Paper-Calendar/ | ||||||
|     cp README.md /home/pi/E-Paper-Master/ |     cp README.md /home/pi/E-Paper-Calendar/ | ||||||
|     cp LICENSE /home/pi/E-Paper-Master/ |     cp LICENSE /home/pi/E-Paper-Calendar/ | ||||||
|     cp -r .git /home/pi/E-Paper-Master/ |     cp -r .git /home/pi/E-Paper-Calendar/ | ||||||
|      |      | ||||||
|     # Make a copy of the sample settings.py file |     # Make a copy of the sample settings.py file | ||||||
|     cd /home/pi/E-Paper-Master/Calendar |     cd /home/pi/E-Paper-Calendar/Calendar | ||||||
|     cp settings.py.sample settings.py |     cp settings.py.sample settings.py | ||||||
|     cd |     cd | ||||||
|  |  | ||||||
|     # Remove the downloaded (temporary) directory |     # Remove the downloaded (temporary) directory | ||||||
|     sudo rm -r E-Paper-Calendar-with-iCal-sync-and-live-weather |     sudo rm -r Inky-Calendar | ||||||
|  |  | ||||||
|     # add a short info |     # add a short info | ||||||
|     cat > /home/pi/E-Paper-Master/Info.txt << EOF |     cat > /home/pi/E-Paper-Calendar/Info.txt << EOF | ||||||
| This document contains a short info of the E-Paper-Calendar software version | This document contains a short info of the E-Paper-Calendar software version | ||||||
|  |  | ||||||
| Version: 1.5 | Version: 1.5 | ||||||
| Installer version: 1.5 (Early February 2019) | Installer version: 1.5 (Early February 2019) | ||||||
| configuration file: /home/pi/E-Paper-Master/Calendar/settings.py | configuration file: /home/pi/E-Paper-Calendar/Calendar/settings.py | ||||||
| If the time was set correctly, you installed this software on: | If the time was set correctly, you installed this software on: | ||||||
| EOF | EOF | ||||||
|     echo "$(date)" >> /home/pi/E-Paper-Master/Info.txt |     echo "$(date)" >> /home/pi/E-Paper-Calendar/Info.txt | ||||||
|     echo "" |     echo "" | ||||||
|  |  | ||||||
|     # Setting up supervisor |     # Setting up supervisor | ||||||
| @@ -125,10 +125,10 @@ EOF | |||||||
|  |  | ||||||
|     sudo bash -c 'cat > /etc/supervisor/conf.d/E-Paper.conf' << EOF |     sudo bash -c 'cat > /etc/supervisor/conf.d/E-Paper.conf' << EOF | ||||||
| [program:E-Paper] | [program:E-Paper] | ||||||
| command = sudo /usr/bin/python3.5 /home/pi/E-Paper-Master/Calendar/E-Paper.py | command = sudo /usr/bin/python3.5 /home/pi/E-Paper-Calendar/Calendar/E-Paper.py | ||||||
| stdout_logfile = /home/pi/E-Paper-Master/E-Paper.log | stdout_logfile = /home/pi/E-Paper-Calendar/E-Paper.log | ||||||
| stdout_logfile_maxbytes = 1MB | stdout_logfile_maxbytes = 1MB | ||||||
| stderr_logfile = /home/pi/E-Paper-Master/E-Paper-err.log | stderr_logfile = /home/pi/E-Paper-Calendar/E-Paper-err.log | ||||||
| stderr_logfile_maxbytes = 1MB | stderr_logfile_maxbytes = 1MB | ||||||
| EOF | EOF | ||||||
|  |  | ||||||
| @@ -148,7 +148,7 @@ EOF | |||||||
|     echo -e "\e[1;31m"If this file is not modified, the programm will not start"\e[0m" |     echo -e "\e[1;31m"If this file is not modified, the programm will not start"\e[0m" | ||||||
|  |  | ||||||
|     echo -e "\e[1;36m"To modify the settings file, enter:"\e[0m" |     echo -e "\e[1;36m"To modify the settings file, enter:"\e[0m" | ||||||
|     echo -e "\e[1;36m"nano /home/pi/E-Paper-Master/Calendar/settings.py"\e[0m" |     echo -e "\e[1;36m"nano /home/pi/E-Paper-Calendar/Calendar/settings.py"\e[0m" | ||||||
|     echo -e "\e[1;36m"You can test if the programm works by typing:"\e[0m" |     echo -e "\e[1;36m"You can test if the programm works by typing:"\e[0m" | ||||||
|     echo -e "\e[1;36m"python3.5 /home/pi/E-Paper-Master/Calendar/E-Paper.py"\e[0m" |     echo -e "\e[1;36m"python3.5 /home/pi/E-Paper-Calendar/Calendar/E-Paper.py"\e[0m" | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user