Files
libra/debian/libra.postinst
Andrew Hutchings 2e7af3a043 Add ubuntu package building
Add all the scripts needed to build debian packages

Change-Id: I41cc6f9439bb1edb29d3a17f2d507d104eca8643
2012-12-11 17:48:17 +00:00

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#