I'm setting up a Musicbrainz mirror server on FreeBSD. Everything works except the provided replication shell script.
This is the code that is failing:
It fails on the first line with the error message that the shell "Could not lock file /dev/stdin for reading".
I tried it on Linux and it works just fine. How can I make this work on FreeBSD?
This is the code that is failing:
Bash:
logrotate /dev/stdin <<EOF
/var/logs/mirror.log {
daily
rotate 30
}
EOF
It fails on the first line with the error message that the shell "Could not lock file /dev/stdin for reading".
I tried it on Linux and it works just fine. How can I make this work on FreeBSD?