hi, this is not all that useful as it the salt output not the service output, but I am not entirely surprised this is not working as I am missing something on your system. The script should have worked as the original failure would kill the script on all systems and we not seeing this. However, this does not mean there is no issue.
So I going to need a few more bit of info form you, it also possible the script edit you did has an issue.:
1. Can I have the output form the failed service. this can be obtained from 'sudo journalctl -u autoshutdown.service' this should contain were the script is now failing.
2. Can I have the output of: 'cat /etc/default/locale' I will mimic your localisation just to see if that the issue.
3. Less useful but I just what to check: 'bash --version'
1. Is the most important as i need to know why the script is now falling.