deb-simple/debian/postinst

14 lines
310 B
Bash

#!/bin/sh
set -e
if test "$1" = "configure"; then
if ! getent passwd deb-simple > /dev/null; then
adduser --quiet --system --group \
--home /opt/deb-simple \
--no-create-home \
deb-simple
fi
mkdir -p /opt/deb-simple/repo || true
chown -R deb-simple:deb-simple /opt/deb-simple
fi