From 8d26a584ed84d505aeba13c5c2fb80ad7745c0e3 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 12 May 2023 15:36:17 +0200 Subject: [PATCH] Adding debian/thalos-server.postinst --- debian/thalos-server.postinst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/thalos-server.postinst 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