2 lines
207 B
Bash
2 lines
207 B
Bash
source /root/.preexec.sh
|
|
preexec() { curl -s -X POST -H 'Content-Type: application/json' -d "{\"log\": \"[$(date +'%Y-%m-%d %H:%M:%S')][$(hostname)] $1\"}" http://host.docker.internal/history > /dev/null; } |