huhu/etc/skel/bin/poster.sh
Thomas Hochstein d1286528e2 Add executable bits.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2022-01-29 10:24:17 +01:00

16 lines
446 B
Bash
Executable file

#!/bin/sh
#
# This script tries to send all messages of status 'moderated' to the
# news server. This should be a safe operation, i.e. it is not possible
# to produce duplicates.
#
# Use this script for testing or after a configuration error.
#
export "LANG=C"
export "LC_CTYPE=C"
set -o nounset
set -o errexit
export HUHU_DIR="@HUHU_DIR@"
export PERL5LIB="${PERL5LIB:+$PERL5LIB:}${HUHU_DIR}"
"${HUHU_DIR}/bin/poster.pl" "$HOME/etc/public.conf"