You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dale, wondering if it is possible to add another feature to hassctl that allows users to backup their configurations to Github. Sounds like it should be possible. I have to run the following commands to update my repo:
cd /home/hass/.homeassistant
sudo su -s /bin/bash hass
git add .
git commit -m 'your commit message'
git push origin master
The script (borrowed from @CCOSTAN) works partly, but I can run it only run it as hass user (i.e., I have to run sudo su -s /bin/bash hass before I can run ./gitupdate.sh).
#!/bin/bash
cd /home/hass/.homeassistant
git add .
git status
echo -n "Enter the Description for the Change: " [Minor Update]
read CHANGE_MSG
git commit -m "${CHANGE_MSG}"
git push origin master
exit
The text was updated successfully, but these errors were encountered:
Dale, wondering if it is possible to add another feature to
hassctl
that allows users to backup their configurations to Github. Sounds like it should be possible. I have to run the following commands to update my repo:The script (borrowed from @CCOSTAN) works partly, but I can run it only run it as
hass
user (i.e., I have to runsudo su -s /bin/bash hass
before I can run./gitupdate.sh
).The text was updated successfully, but these errors were encountered: