Preparing for new release
This commit is contained in:
parent
8aed428ba8
commit
d381993021
18
prototype.sh
18
prototype.sh
@ -1,9 +1,8 @@
|
|||||||
# Please do not use this file. It is only intended for testing new features and can potentially damage the system.
|
# Please do not use this file. It is only intended for testing new features and can potentially damage the system.
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This script is for automating the install for both displays,
|
# E-Paper-Calendar software installer for the raspberry pi
|
||||||
# The 2-colour and 3-colour one.
|
# Version: 1.5 (Early Februrary 2019)
|
||||||
# Version: 1.4 (Late December)
|
# Well tested and confirmed on 3rd Feb 2019
|
||||||
# Well tested and confirmed on 5th Jan 2019
|
|
||||||
|
|
||||||
# Copyright by aceisace
|
# Copyright by aceisace
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ if [ "$option" = 1 ]; then
|
|||||||
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-Master/Calendar/settings.py /home/pi/settings-old.py
|
||||||
echo "renaming the old E-Paper software folder"
|
echo "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-Master /home/pi/E-Paper-Master-old
|
||||||
@ -113,9 +112,6 @@ fin
|
|||||||
|
|
||||||
# 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
|
||||||
# execute the monocolour-converter to convert all 3-colour icons to 2-colour ones
|
|
||||||
python3.5 /home/pi/E-Paper-Master/Calendar/monocolour-converter.py
|
|
||||||
|
|
||||||
# edit the settings file for the 2-colour display option
|
# edit the settings file for the 2-colour display option
|
||||||
sed -i 's/display_colours = "bwr"/display_colours = "bw"/' /home/pi/E-Paper-Master/Calendar/settings.py
|
sed -i 's/display_colours = "bwr"/display_colours = "bw"/' /home/pi/E-Paper-Master/Calendar/settings.py
|
||||||
|
|
||||||
@ -124,7 +120,7 @@ fin
|
|||||||
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: 2-Colour E-Paper-version
|
Version: 2-Colour E-Paper-version
|
||||||
Installer version: 1.4 (Late December 2018)
|
Installer version: 1.5 (Early February 2019)
|
||||||
configuration file: /home/pi/E-Paper-Master/Calendar/settings.py
|
configuration file: /home/pi/E-Paper-Master/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
|
||||||
@ -139,7 +135,7 @@ EOF
|
|||||||
This document contains a short info of the version
|
This document contains a short info of the version
|
||||||
|
|
||||||
Version: 3-Colour E-Paper-version
|
Version: 3-Colour E-Paper-version
|
||||||
Installer version: 1.4 (Late December 2018)
|
Installer version: 1.5 (Early February 2019)
|
||||||
configuration file: /home/pi/E-Paper-Master/Calendar/settings.py
|
configuration file: /home/pi/E-Paper-Master/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
|
||||||
@ -153,7 +149,7 @@ 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/stable.py
|
command = sudo /usr/bin/python3.5 /home/pi/E-Paper-Master/Calendar/E-Paper.py
|
||||||
stdout_logfile = /home/pi/E-Paper-Master/E-Paper.log
|
stdout_logfile = /home/pi/E-Paper-Master/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-Master/E-Paper-err.log
|
||||||
|
Loading…
Reference in New Issue
Block a user