Skip to content

Commit

Permalink
Debian Improvements 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuskuss authored Nov 10, 2024
1 parent 1144213 commit 6c038f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/deb/DEBIAN/preinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if getent passwd peerbanhelper | grep --quiet /nonexistent; then
adduser --quiet --system --group --home /var/lib/peerbanhelper peerbanhelper
chown -R peerbanhelper: /etc/peerbanhelper
mv /etc/peerbanhelper/config/config.yml /etc/peerbanhelper/config/profile.yml /etc/peerbanhelper
rmdir /etc/peerbanhelper/config
rm -rf /etc/peerbanhelper/data /etc/peerbanhelper/logs
rm -rf /etc/peerbanhelper/config /etc/peerbanhelper/data
mv /etc/peerbanhelper/logs /var/log/peerbanhelper
find /etc/peerbanhelper -mindepth 1 -maxdepth 1 -type d -exec mv {} /var/lib/peerbanhelper \;
fi
1 change: 1 addition & 0 deletions pkg/deb/usr/lib/systemd/system/peerbanhelper.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ After=network.target
User=peerbanhelper
WorkingDirectory=/usr/lib/peerbanhelper
ExecStart=/usr/bin/java -Dpbh.release=debian -Dpbh.datadir=/var/lib/peerbanhelper -Dpbh.configdir=/etc/peerbanhelper -Dpbh.logsdir=/var/log/peerbanhelper -Dpbh.log.level=WARN -Xmx512M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+ShrinkHeapInSteps -jar PeerBanHelper.jar
SuccessExitStatus=143
AmbientCapabilities=CAP_NET_ADMIN
Restart=on-failure

Expand Down

0 comments on commit 6c038f1

Please sign in to comment.