parent
96fc4a5740
commit
5c68565758
@ -1,12 +1,18 @@
|
|||||||
## These scripts are run from /home/pi
|
# ## These scripts are run from /home/pi
|
||||||
|
#
|
||||||
|
# #!/bin/bash
|
||||||
|
#
|
||||||
|
# cd /home/hass/.homeassistant
|
||||||
|
# source /srv/hass/hass_venv/bin/activate
|
||||||
|
#
|
||||||
|
# echo "Processing update"
|
||||||
|
# pip3 install --upgrade homeassistant
|
||||||
|
#
|
||||||
|
# hass --script check_config
|
||||||
|
# exit
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
cd /home/hass/docker_files
|
||||||
cd /home/hass/.homeassistant
|
docker-compose down
|
||||||
source /srv/hass/hass_venv/bin/activate
|
docker-compose pull
|
||||||
|
docker-compose up -d
|
||||||
echo "Processing update"
|
|
||||||
pip3 install --upgrade homeassistant
|
|
||||||
|
|
||||||
hass --script check_config
|
|
||||||
exit
|
|
||||||
|
|||||||
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /home/hass/docker_files
|
||||||
|
docker-compose exec home-assistant python -m homeassistant --config /config --script check_config
|
||||||
|
|
||||||
|
cd /home/hass/docker_files/homeassistant
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
cd /home/hass/docker_files
|
||||||
|
docker-compose exec home-assistant python -m homeassistant --config /config --script check_config
|
||||||
|
|
||||||
|
cd ~
|
||||||
|
exit
|
||||||
@ -1,16 +1,16 @@
|
|||||||
## These scripts are run from /home/pi
|
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
cd /home/hass/docker_files
|
||||||
|
docker-compose exec home-assistant python -m homeassistant --config /config --script check_config
|
||||||
|
|
||||||
cd /home/hass/.homeassistant
|
cd /home/hass/docker_files/homeassistant
|
||||||
source /srv/hass/hass_venv/bin/activate
|
|
||||||
hass --script check_config
|
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
git status
|
git status
|
||||||
echo -n "Enter the Description for the Change: " [Minor Update]
|
echo -n "Enter the Description for the Change: [Minor Edit] "
|
||||||
read CHANGE_MSG
|
read CHANGE_MSG
|
||||||
|
CHANGE_MSG=${CHANGE_MSG:-Minor Edit}
|
||||||
git commit -m "${CHANGE_MSG}"
|
git commit -m "${CHANGE_MSG}"
|
||||||
git push origin master
|
git push origin master
|
||||||
|
|
||||||
|
cd ~
|
||||||
exit
|
exit
|
||||||
|
|||||||
Loading…
Reference in new issue