feat: add build restproxy to the input

This commit is contained in:
zhangsz
2025-03-06 20:11:02 +08:00
parent e6b570488c
commit e9c7f4fa2c
16 changed files with 379 additions and 17 deletions

10
pkg/cproxy/DEBIAN/control Executable file
View File

@@ -0,0 +1,10 @@
Package: restproxy
Version: 2403.1-YYYYMMDD
Section: net
Priority: optional
Architecture: amd64
Essential: no
Depends:
Conflicts: restproxy
Maintainer: 4GC
Description: 4GC REST Proxy Software

7
pkg/cproxy/DEBIAN/postinst Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
test ! -f /usr/local/restproxy/conf/rest_proxy.conf && cp -rf /usr/local/restproxy/conf/default/* /usr/local/restproxy/conf
systemctl enable restproxy
exit 0

6
pkg/cproxy/DEBIAN/prerm Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
# Commands to be run before uninstall of the package
systemctl disable restproxy