feat: support build deb
This commit is contained in:
16
debbuild/DEBIAN/preinst
Normal file → Executable file
16
debbuild/DEBIAN/preinst
Normal file → Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user