feat: add build restproxy to the input
This commit is contained in:
10
pkg/cproxy/DEBIAN/control
Executable file
10
pkg/cproxy/DEBIAN/control
Executable 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
7
pkg/cproxy/DEBIAN/postinst
Executable 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
6
pkg/cproxy/DEBIAN/prerm
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Commands to be run before uninstall of the package
|
||||
|
||||
systemctl disable restproxy
|
||||
|
||||
Reference in New Issue
Block a user