1
0
Files
build.ems/debbuild/22.04/DEBIAN/preinst
2025-06-16 14:17:59 +08:00

18 lines
429 B
Plaintext
Executable File

# !/bin/bash
systemctl daemon-reload
if systemctl list-units --type=service --all | grep -q 'restagent.service'; then
echo -n "Stopping PSAP service ... "
systemctl stop restagent.service
systemctl stop sshsvc.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