diff --git a/debian/thalos-server.postinst b/debian/thalos-server.postinst new file mode 100644 index 0000000..bad0440 --- /dev/null +++ b/debian/thalos-server.postinst @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +if [ "$1" = 'configure' ]; then + adduser --force-badname --system --home /nonexistent \ + --group --no-create-home --quiet thalos || true + + # Create log directory + mkdir -p /var/log/thalos + chown thalos:adm /var/log/thalos +fi + +#DEBHELPER# + +exit 0 \ No newline at end of file