mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
scripts/install_freebsd.sh: call log_install for each file.
This commit is contained in:
parent
1f2252b2b5
commit
0001c28ca7
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
# Simple script to install program files on FreeBSD systems
|
||||
|
||||
source ${BASE_DIR}/functions/log_install.sh
|
||||
|
||||
RCDIR=${DESTDIR}/etc/rc.d
|
||||
NEWSYSLOGDIR=${DESTDIR}/etc/newsyslog.conf.d
|
||||
|
||||
|
|
@ -13,6 +15,7 @@ RC_NAME=$(echo ${PROGRAM_NAME} | sed "s~-~_~g")
|
|||
# Create rc file #
|
||||
############################
|
||||
|
||||
log_install ${RCDIR}/${RC_NAME}
|
||||
mkdir -p ${RCDIR}
|
||||
cat ${TEMPLATE_DIR}/rc.conf \
|
||||
| sed "s~{{ RC_NAME }}~${RC_NAME}~g" \
|
||||
|
|
@ -29,6 +32,7 @@ chmod 755 ${RCDIR}/${RC_NAME}
|
|||
# Create newsyslog config #
|
||||
############################
|
||||
|
||||
log_install ${NEWSYSLOGDIR}/${PROGRAM_NAME}.conf
|
||||
mkdir -p ${NEWSYSLOGDIR}
|
||||
cat ${TEMPLATE_DIR}/newsyslog.conf \
|
||||
| sed "s~{{ LOG_FILE }}~${LOGFILE}~" \
|
||||
|
|
@ -40,5 +44,6 @@ cat ${TEMPLATE_DIR}/newsyslog.conf \
|
|||
# Copy binary #
|
||||
############################
|
||||
|
||||
log_install ${DESTDIR}${BINDIR}/${PROGRAM_NAME}
|
||||
mkdir -p ${DESTDIR}/${BINDIR}
|
||||
cp ${BUILD_DIR}/${PROGRAM_NAME} ${DESTDIR}${BINDIR}/${PROGRAM_NAME}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue