1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-07-03 11:53:43 +02:00

scripts/build_freebsd.sh: create newsyslog config instead of logrotate

This commit is contained in:
Henrik Hautakoski 2020-06-11 14:09:09 +02:00
parent cbc638bef0
commit 00d96cf045

View file

@ -3,6 +3,7 @@
PACKAGE_TMPDIR="${PACKAGE_TMPDIR}/freebsd" PACKAGE_TMPDIR="${PACKAGE_TMPDIR}/freebsd"
PACKAGE_RCDIR=/etc/rc.d PACKAGE_RCDIR=/etc/rc.d
PACKAGE_NEWSYSLOGDIR=etc/newsyslog.conf.d
############################ ############################
# Create rc file # # Create rc file #
@ -19,13 +20,13 @@ cat ${BASE_DIR}/rc.template \
> ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_RCDIR}/${RC_NAME} > ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_RCDIR}/${RC_NAME}
############################ ############################
# Create logrotate config # # Create newsyslog config #
############################ ############################
mkdir -p ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_LOGROTATEDIR} mkdir -p ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_NEWSYSLOGDIR}
cat ${BASE_DIR}/logrotate-template.conf \ cat ${TEMPLATE_DIR}/newsyslog.conf \
| sed "s~{{ LOG_FILE }}~${PACKAGE_LOGFILE}~" \ | sed "s~{{ LOG_FILE }}~${PACKAGE_LOGFILE}~" \
> ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_LOGROTATEDIR}/${PACKAGE_NAME} > ${BASE_DIR}/${PACKAGE_TMPDIR}/${PACKAGE_NEWSYSLOGDIR}/${PACKAGE_NAME}.conf
############################ ############################