[ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'backup-1' failed: An error occurred during the script execution: array element type mismatch in backup
If I run through the terminal ./backup.sh then the script works great.
In the script and in the rule I changed the patch from openhab2 to the correct location
In exec.whitelist I entered /etc/openhab/scripts/backup.sh
thanks, now i get new massage of error, do you have any idea what it is:?
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
That’s an initial message that user openhab needs to accept to continue to run sudo commands.
Have a look at OpenHAB sudo [Exec Binding] for explanation.
You need to run