Shell Scripts - (don't run properly) - What am I missing?

I have a shell script that looks for new lets-encrypt certs pushed from my server that does LE for the rest of the network and copies from pem_filename.new to just the .pem filenames they need to be in /ssl.

If I run the script from the SSH add-on from a prompt manually, that works.

but I’ve tried adding the shell_command to both configuration.yaml and a shell_commands.yaml file in /config.

shell_command:
  check_update_ssl: /bin/bash /config/shell/update_ssl.sh

(both with and without ‘bash’ or ‘/bin/bash’, etc…)

And the automation tab entry lists the shell_command for me. So I can set something up there. But when I manually run it - nothing seems to happen.

I’m running the latest Home Assistant in a VM via Virtualbox using the .VDI starter image.

Is there something else I’m missing?

Thanks a bunch,

-Ben

When you say “run in manually”, are you going into the Actions (or Service Calls) tab of Developer Tools? If so, when You click on “Perform Action” (or whatever it was in older updates), does the button turn green with a tick? And then you’re getting no Response result? Maybe look in the logs?

Please post the code of that

How about file permissions ?

You say the script works, So next easy thing would be permissions, after that it would be the logfile from HA to see whats wrong…

You shouldn’t have to call /bin/bash first, you should have that already in the first line of your script:

#!/bin/bash

But even that isn’t totally needed in most cases today, but it covers all your bases just in case. If you did that then your shell command could simply be:

check_update_ssl: "/config/shell/update_ssl.sh"