浏览代码

Fix systemd package

世界 4 月之前
父节点
当前提交
7d58174f1f
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      .fpm_systemd
  2. 3 0
      release/config/sing-box.postinst

+ 1 - 0
.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
 

+ 3 - 0
release/config/sing-box.postinst

@@ -0,0 +1,3 @@
+#!/bin/sh
+
+systemd-sysusers sing-box.conf