Skip to content

Commit

Permalink
Merge pull request #809 from Anuskuss/master
Browse files Browse the repository at this point in the history
Debian fixes
  • Loading branch information
Gaojianli authored Dec 11, 2024
2 parents 2e793e0 + 2f15d97 commit ecdac65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/deb/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/deb/DEBIAN/preinst
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ecdac65

Please sign in to comment.