feat: init build release
This commit is contained in:
16
debbuild/DEBIAN/preinst
Normal file
16
debbuild/DEBIAN/preinst
Normal file
@@ -0,0 +1,16 @@
|
||||
# !/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
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user