Skip to content

Commit

Permalink
Hotfix for issue #59
Browse files Browse the repository at this point in the history
  • Loading branch information
kikeelectronico committed Jun 30, 2020
1 parent 6612beb commit 0dc8975
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
62 changes: 31 additions & 31 deletions bash/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,37 @@ echo "The upgrader has started.\r\n"
#Pull from the repository
sudo git pull

echo "\r\nThe installations file has been created.\r\n"


#Intall the new services
sudo cp configuration_templates/homeware.service /lib/systemd/system/
sudo cp configuration_templates/homewareMQTT.service /lib/systemd/system/
sudo cp configuration_templates/homewareTasks.service /lib/systemd/system/
sudo cp configuration_templates/homewareRedis.service /lib/systemd/system/

#Install redis
sudo pip3 install redis
sudo mkdir redis
cd redis
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
sudo make
sudo make install

#Get current sudo crontab
sudo crontab -l > copy
#Set the new cron job up
echo "@reboot sudo systemctl start homewareMQTT" >> copy
echo "@reboot sudo systemctl start homewareTasks" >> copy
echo "@reboot sudo systemctl start homewareRedis" >> copy
#Save the cron file
sudo crontab copy
rm copy

echo "v0.6\r\n" >> installations.txt
echo "v0.6 dependencies have been installed.\r\n"
# echo "\r\nThe installations file has been created.\r\n"

#
# #Intall the new services
# sudo cp configuration_templates/homeware.service /lib/systemd/system/
# sudo cp configuration_templates/homewareMQTT.service /lib/systemd/system/
# sudo cp configuration_templates/homewareTasks.service /lib/systemd/system/
# sudo cp configuration_templates/homewareRedis.service /lib/systemd/system/
#
# #Install redis
# sudo pip3 install redis
# sudo mkdir redis
# cd redis
# wget http://download.redis.io/redis-stable.tar.gz
# tar xvzf redis-stable.tar.gz
# cd redis-stable
# sudo make
# sudo make install
#
# #Get current sudo crontab
# sudo crontab -l > copy
# #Set the new cron job up
# echo "@reboot sudo systemctl start homewareMQTT" >> copy
# echo "@reboot sudo systemctl start homewareTasks" >> copy
# echo "@reboot sudo systemctl start homewareRedis" >> copy
# #Save the cron file
# sudo crontab copy
# rm copy
#
# echo "v0.6\r\n" >> installations.txt
# echo "v0.6 dependencies have been installed.\r\n"


#Start services
Expand Down
2 changes: 1 addition & 1 deletion data.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Data:

version = 'v0.6'
version = 'v0.6.1'
homewareData = {}
homewareFile = 'homeware.json'
secureData = {}
Expand Down
2 changes: 1 addition & 1 deletion static/panel/device_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function requestDataForRender(){

var ajaxStep = new XMLHttpRequest();
ajaxStep.addEventListener("load", render);
ajaxStep.open("GET", "/static/panel/assistant_device/4.html");
ajaxStep.open("GET", "/static/panel/device_assistant/4.html");
ajaxStep.send();

}
Expand Down

0 comments on commit 0dc8975

Please sign in to comment.