From 1920c191bebd3c4076eaa79066823893d230ac7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 5 Jun 2025 10:28:42 +0800 Subject: [PATCH] Fix systemd package --- .fpm_systemd | 1 + release/config/sing-box.postinst | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 release/config/sing-box.postinst diff --git a/.fpm_systemd b/.fpm_systemd index 103023e2..402ed429 100644 --- a/.fpm_systemd +++ b/.fpm_systemd @@ -8,6 +8,7 @@ --deb-field "Bug: https://github.com/SagerNet/sing-box/issues" --no-deb-generate-changes --config-files /etc/sing-box/config.json +--after-install release/config/sing-box.postinst release/config/config.json=/etc/sing-box/config.json diff --git a/release/config/sing-box.postinst b/release/config/sing-box.postinst new file mode 100644 index 00000000..770dd22a --- /dev/null +++ b/release/config/sing-box.postinst @@ -0,0 +1,3 @@ +#!/bin/sh + +systemd-sysusers sing-box.conf