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

16
debbuild/DEBIAN/preinst Normal file → Executable file
View File

@@ -1,16 +1,8 @@
# !/bin/bash
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping WFC service ... "
systemctl stop restagent.service
echo "done"
fi
fe_dist_dir=/opt/wfc/docker/nginx/html/dist
FERootDir=/usr/local/omc/htdocs/front
# apt-get install zip
# clear front-end old hash js files
rm -rf ${FERootDir}/assets
rm -rf ${FERootDir}/js
rm -rf ${FERootDir}/index.*.js
rm -rf ${fe_dist_dir}/sys
rm -rf ${fe_dist_dir}/u