feat: build input features
This commit is contained in:
10
pkg/ussdgw/DEBIAN/control
Executable file
10
pkg/ussdgw/DEBIAN/control
Executable file
@@ -0,0 +1,10 @@
|
||||
Package: ussdgw
|
||||
Version: 2501.22-YYYYMMDD
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Essential: no
|
||||
Depends:
|
||||
Conflicts: ussdgw
|
||||
Maintainer: 4GC
|
||||
Description: 4GC USSD Gateway Software
|
||||
14
pkg/ussdgw/DEBIAN/postinst
Executable file
14
pkg/ussdgw/DEBIAN/postinst
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
test ! -f /usr/local/ussdgw/bin/conf/wxc2_sys.conf && cp -rf /usr/local/ussdgw/bin/conf/default/* /usr/local/ussdgw/bin/conf
|
||||
test ! -f /usr/local/ussdgw/bin/conf/yx_ussd.conf && cp -rf /usr/local/ussdgw/bin/conf/default/yx_ussd.conf /usr/local/ussdgw/bin/conf
|
||||
|
||||
subDir="/usr/local/subsManage"
|
||||
if [ ! -d "$subDir" ]; then
|
||||
mkdir $subDir
|
||||
chmod 777 $subDir
|
||||
fi
|
||||
|
||||
systemctl enable ussdgw
|
||||
|
||||
exit 0
|
||||
6
pkg/ussdgw/DEBIAN/prerm
Executable file
6
pkg/ussdgw/DEBIAN/prerm
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Commands to be run before uninstall of the package
|
||||
|
||||
systemctl disable ussdgw
|
||||
|
||||
Reference in New Issue
Block a user