mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-08-29 21:18:12 +02:00
scripts/build_deb.sh: refactor common code to build.sh
This commit is contained in:
parent
e547ac7062
commit
767508c4f0
3 changed files with 39 additions and 13 deletions
|
|
@ -1,17 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
PACKAGE_BINDIR=${PACKAGE_PREFIX}/bin
|
||||
PACKAGE_ETCDIR=etc/${PACKAGE_NAME}
|
||||
PACKAGE_SYSUNITDIR=etc/systemd/system
|
||||
PACKAGE_RSYSLOGDIR=etc/rsyslog.d
|
||||
PACKAGE_LOGROTATEDIR=etc/logrotate.d
|
||||
PACKAGE_LOGDIR=/var/log
|
||||
PACKAGE_LOGFILE=${PACKAGE_LOGDIR}/${PACKAGE_NAME}.log
|
||||
PACKAGE_SHAREDIR=${PACKAGE_PREFIX}/share/${PACKAGE_NAME}
|
||||
PACKAGE_DESCRIPTION="HAproxy healthcheck program for EOSIO API."
|
||||
PACKAGE_TMPDIR="pack"
|
||||
PACKAGE_TMPDIR="${PACKAGE_TMPDIR}/debian"
|
||||
|
||||
if [[ -f /etc/upstream-release/lsb-release ]]; then
|
||||
source /etc/upstream-release/lsb-release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue