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