# !/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
