From 2f15d97220b9e37a58e9583d2b2bad68c6843ba3 Mon Sep 17 00:00:00 2001 From: Anuskuss Date: Wed, 11 Dec 2024 00:36:27 +0100 Subject: [PATCH] Debian fixes --- pkg/deb/DEBIAN/postinst | 2 +- pkg/deb/DEBIAN/preinst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/deb/DEBIAN/postinst b/pkg/deb/DEBIAN/postinst index a365dfba8a..488c9803fe 100755 --- a/pkg/deb/DEBIAN/postinst +++ b/pkg/deb/DEBIAN/postinst @@ -3,7 +3,7 @@ getent passwd peerbanhelper > /dev/null || adduser --quiet --system --group --home /var/lib/peerbanhelper peerbanhelper chown -R peerbanhelper: /etc/peerbanhelper chown -R root: /usr/lib/peerbanhelper -mkdir /var/log/peerbanhelper +mkdir -p /var/log/peerbanhelper chown peerbanhelper: /var/log/peerbanhelper systemctl daemon-reload diff --git a/pkg/deb/DEBIAN/preinst b/pkg/deb/DEBIAN/preinst index a67dbf2c23..d8d23437b8 100755 --- a/pkg/deb/DEBIAN/preinst +++ b/pkg/deb/DEBIAN/preinst @@ -1,6 +1,6 @@ #!/bin/sh -e -# migrate <= 7.1.2 +# migrate < 7.2 if getent passwd peerbanhelper | grep --quiet /nonexistent; then deluser --quiet peerbanhelper adduser --quiet --system --group --home /var/lib/peerbanhelper peerbanhelper