2
0

feat: support build deb

This commit is contained in:
zhangsz
2025-02-19 14:38:52 +08:00
parent b550614a4a
commit a208cc75d4
9 changed files with 63 additions and 131 deletions

View File

@@ -31,7 +31,6 @@ conf_dirs=" ${docker_work_dir}/conf
${docker_work_dir}/wfc/modules/file/conf
${docker_work_dir}/wfc/modules/payment/conf
"
case "$1" in
env)
# prepare directory
@@ -42,9 +41,11 @@ case "$1" in
fi
# setup system serivce
cp -rf ${src_service_dir}/wfccontrol.service ${dst_service_dir}/
systemctl daemon-reload
systemctl enable wfccontrol.service
if [ -f ${src_service_dir}/wfccontrol.service ]; then
cp -rf ${src_service_dir}/wfccontrol.service ${dst_service_dir}/
systemctl daemon-reload
systemctl enable wfccontrol.service
fi
if [ ! -f ${docker_work_dir}/docker-compose.yml ]; then
cp ${docker_work_dir}/compose/docker-compose.yml ${docker_work_dir}/docker-compose.yml