blob: 2035aa126538d3694f5e6186411fea65a6645014 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package with configuration files for InfluxDB.
APPNAME=influxdb-configd
DESCRIPTION="The local config files for the push managed install of influxdb."
SYSTEMD=influxdb-server.service
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root"
INSTALL_DIR="sudo install -d --verbose --backup=none --group=influxdb --owner=influxdb"
${INSTALL} --mode=644 -T ./influxdb-config.toml ${ROOT}/opt/influxdb/shared/config.toml
${INSTALL} --mode=644 -T ./sys/influxdb-server.service ${ROOT}/etc/systemd/system/influxdb-server.service
${INSTALL} --mode=644 -T ./sys/default ${ROOT}/etc/default/influxdb
${INSTALL_DIR} ${ROOT}/mnt/pd0/influxdb
${INSTALL_DIR} ${ROOT}/var/run/influxdb
}
source ../bash/release.sh