如何使用许可证密钥文件打包shell脚本文件

我正在处理特定任务的自动shell脚本。 在执行任务步骤之前,我想validation通过web服务调用提供给客户的许可证密钥。

请帮助我制作这两个文件(shell脚本和许可证文件)的包(.deb或任何其他),以便最终用户使用简单的命令自动运行。

我提供了示例许可证文件的shell脚本的初始部分

部分shell脚本:

#/bin/sh function pause(){ read -p "$*" } file="./license.properties" url="webserviceurl" if [ -f "$file" ] then echo "$file found." . $file echo "sourcing of file is done" echo $productName" "$productVersion "license information" echo "Name of customer =" $customerName echo "license key of customer =" $licenseId else echo "license properties file not found." exit 0 fi curl -i -H "Accept: application/json" $url?licenseId=$licenseId 

样本许可证文件

productName = ESMA customerName =testing版用户productVersion = 1.0 licenseId = teststring