#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
	addgroup --system --quiet vitastor
	adduser --system --quiet --ingroup vitastor --no-create-home --home /nonexistent vitastor
	mkdir -p /etc/vitastor
	mkdir -p /var/lib/vitastor
	chown vitastor:vitastor /var/lib/vitastor
fi
