From 84547e5ad3f97f87ba786efd67a0b29eaa84255d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 12 Sep 2024 08:20:16 +0200 Subject: [PATCH] minor style fixes. --- debian/thalos.postinst | 10 +++++----- debian/thalos.postrm | 10 ++++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/debian/thalos.postinst b/debian/thalos.postinst index 9c31f4b..a643c01 100644 --- a/debian/thalos.postinst +++ b/debian/thalos.postinst @@ -2,14 +2,14 @@ set -e if [ "$1" = 'configure' ]; then - adduser --force-badname --system --home /nonexistent \ + 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 + # Create log directory + mkdir -p /var/log/thalos + chown thalos:adm /var/log/thalos fi #DEBHELPER# -exit 0 \ No newline at end of file +exit 0 diff --git a/debian/thalos.postrm b/debian/thalos.postrm index 08a6475..dde4859 100644 --- a/debian/thalos.postrm +++ b/debian/thalos.postrm @@ -3,11 +3,9 @@ set -e #DEBHELPER# - -if [ "${1}" = "purge" ] -then - deluser --quiet thalos > /dev/null || true - rm -rf /var/log/thalos +if [ "${1}" = "purge" ]; then + deluser --quiet thalos >/dev/null || true + rm -rf /var/log/thalos fi -exit 0 \ No newline at end of file +exit 0