Add all the scripts needed to build debian packages Change-Id: I41cc6f9439bb1edb29d3a17f2d507d104eca8643
26 lines
548 B
Bash
Executable File
26 lines
548 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ "$1" = "configure" ]; then
|
|
if [ -z "`id -u libra 2> /dev/null`" ]; then
|
|
adduser --system --group --home /usr/lib/libra --gecos "Libra load balancer" \
|
|
--no-create-home --disabled-password --quiet libra || true
|
|
fi
|
|
|
|
ucf --three-way /usr/share/libra/sample_libra.cfg /etc/libra.cfg
|
|
|
|
if [ ! -d /var/log/libra ]; then
|
|
mkdir /var/log/libra
|
|
chown libra:libra /var/log/libra
|
|
fi
|
|
|
|
if [ ! -d /var/run/libra ]; then
|
|
mkdir /var/run/libra
|
|
chown libra:libra /var/run/libra
|
|
fi
|
|
|
|
fi
|
|
|
|
#DEBHELPER#
|