Howdy. I have a bash called backup.sh
script in /config and I’ve added the shell_command to configuration.yaml:
shell_command:
backup: /root/config/backup.sh
I’m running HAOS, the shell script has the correct owner:group and permissions. I can execute the script when I ssh into HAOS, but when I call the Shell Command: backup
service from HA’s Developer Tools, I get:
stderr: "/bin/sh: /root/config/gitupdate.sh: not found"
returncode: 127
Any thoughts on this?
I agree this is a better method.
I’m having trouble figuring out which user or container HA is using to execute the shell command. I
docker exec -it homeassistant /bin/bash
, ranssh-keygen
, and copied the pubkey into gitea, but it had no effect. I tried to run ssh-keygen in thehassio-cli
container butssh-keygen
isn’t installed (so my assumption is that this isn’t a container that would do something that might need a key, because HA didn’t pre-load ssh-keygen - maybe I’m wrong). When Idocker inspect
the HA containers and grep for “User” or “UID”, there is no result.