fix: build shell script

This commit is contained in:
zhangsz
2025-06-24 18:02:59 +08:00
parent a5f31f6bb8
commit 0ce22ae0c4
16 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
# Licence软件操作手册
## Project Introduction
A License, also known as a copyright license certificate, is typically provided to paying users of paid software as proof of access permission. License authentication is a verification method based on authorization. During the startup or operation of an application, it will check the validity of the License file. If an invalid or expired License is detected, the application will refuse to provide services.
This project is used to generate the license.lic certificate and provide it to users for use. This project is not available for external use.
* Directory tree after installation
```text
/opt/lic # work root directory
├── bin # shell script and binary file
├── docker # docker compose work directory
│   └── jar # jar package
└── docs # related document directory
```
* Launch the project
```sh
cd /opt/lic/bin
sudo ./licensecontrol.sh start
```
* Generate certificate
```sh
cd /opt/lic/bin
sudo ./generatelic.sh -t "2026-05-31 23:59:59" -code "ud9BGY9yZzo/ekXvf5vXzS4RmyCXm9a7rBqiUy1q7x+0kIBSz6AJ98MtGQiojJLpFbYRD1RkP2UsbtGCxyyozTK69+OWukfq9zTMu2qCkXcajL+HhuF/0VJQDSWPjp+J"
```
generatelic script parameter description:
-t Certificate expiration time, required field. Format: "2026-05-31 23:59:59"
- Code: Activation code, optional, format:"ud9BGY9yZzo/ekXvf5vXzS4RmyCXm9a7rBqiUy1q7x+0kIBSz6AJ98MtGQiojJLpFbYRD1RkP2UsbtGCxyyozTK69+OWukfq9zTMu2qCkXcajL+HhuF/0VaJQDSWPjp+J"
The activation code is the unique identifier of the device and is used to specify the machine for certificate usage. The activation code is automatically generated in /opt/wfc/docker/conf/license/activation_code.txt after the WANFI project is running.
The certificate is generated at /opt/lic/docker/license/license.lic.
The license.lic file must be placed in the /opt/wfc/docker/conf/license/ directory of the WANFI project for the project to be able to use it.

Binary file not shown.

View File

@@ -0,0 +1,37 @@
# Licence软件操作手册
## 项目介绍
License也就是版权许可证书一般用于收费软件给付费用户提供的访问许可证明License认证是一种基于授权许可的验证方式。应用程序在启动或运行过程中会检查License文件的有效性如果检测到无效或过期的 License应用程序将拒绝提供服务。
本项目用于生成license.lic证书将证书提供给用户使用。本项目不对外提供。
* 安装后目录树
```text
/opt/lic # work root directory
├── bin # shell script and binary file
├── docker # docker compose work directory
│   └── jar # jar package
└── docs # related document directory
```
* 启动项目
```sh
cd /opt/lic/bin
sudo ./licensecontrol.sh start
```
* 生成证书
```sh
cd /opt/lic/bin
sudo ./generatelic.sh -t "2026-05-31 23:59:59" -code "ud9BGY9yZzo/ekXvf5vXzS4RmyCXm9a7rBqiUy1q7x+0kIBSz6AJ98MtGQiojJLpFbYRD1RkP2UsbtGCxyyozTK69+OWukfq9zTMu2qCkXcajL+HhuF/0VJQDSWPjp+J"
```
generatelic脚本参数说明
-t 证书到期时间,必填,格式如"2026-05-31 23:59:59"
-code 激活码,可选,格式如"ud9BGY9yZzo/ekXvf5vXzS4RmyCXm9a7rBqiUy1q7x+0kIBSz6AJ98MtGQiojJLpFbYRD1RkP2UsbtGCxyyozTK69+OWukfq9zTMu2qCkXcajL+HhuF/0VaJQDSWPjp+J"
激活码是设备的唯一标识用于指定的机器使用证书激活码在WANFI项目运行后自动生成在/opt/wfc/docker/conf/license/activation_code.txt
证书生成在/opt/lic/docker/license/license.lic
将license.lic文件放入wanfi项目目录/opt/wfc/docker/conf/license/WANFI项目才可使用

Binary file not shown.