ibz / lightning-shell

The shell for your personal server
https://lightningshell.app
MIT License
24 stars 13 forks source link

Make lsh_exec.sh compatible with crontab #13

Closed tomaswest closed 2 years ago

tomaswest commented 2 years ago

If you try to run lsh_exec.sh from crontab, it will fail, because it is not compatible with "-it" flag for docker exec command. More info about this here https://stackoverflow.com/questions/37089033/docker-exec-is-not-working-in-cron Not a big problem for me - I've just made my own lsh_exec_crontab.sh for such case, without "-it" flag. I am not a big of code writer, but it should be possible to make lsh_exec.sh detect whether it is executed from shell, or from cron table.

ibz commented 2 years ago

Added lsh_exec_ni.sh in v0.1.10