How are you?
Sorry to bother you!
Just I am getting this error:
logrotate_script: 4: logrotate_script: Syntax error: "then" unexpected (expecting "fi")
error: error running non-shared postrotate script for /var/log/samba/log.samba of '/var/log/samba/log.samba '
run-parts: /etc/cron.daily/logrotate exited with return code 1
I guess it is here:
if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet samba$
systemctl kill --kill-who all --signal=SIGHUP samba-ad-dc
elsif [ -f /var/run/samba/samba.pid ]; then
# This only sends to main pid, See #803924
kill -HUP `cat /var/run/samba/samba.pid`
I guess I can fix it, just let you know a small issue. Though you have many.
Have good day!
(In reply to patrikx3 from comment #0)
It seems this is some script from distribution packages,
it's not part of the upstream samba.org tree.
Please open a bug in the bug tracker of your distribution.