This commit is contained in:
huili 2019-08-26 15:17:37 +08:00
parent 854ee3df4c
commit 38102ccec3
2 changed files with 5 additions and 5 deletions

View File

@ -29,8 +29,8 @@ cfg_install_dir="/etc/taos"
install_main_dir="/usr/local/taos"
if [ -f ${cfg_install_dir}/taos.cfg ]; then
${csudo} rm -f ${install_main_dir}/cfg/taos.cfg || :
fi
fi
${csudo} dpkg -P tdengine || :
${csudo} rm -f /var/lib/dpkg/info/tdengine* || :
# there can not libtaos.so*, otherwise ln -s error
${csudo} rm -f ${install_main_dir}/driver/libtaos* || :

View File

@ -99,8 +99,8 @@ if [ -f %{cfg_install_dir}/taos.cfg ]; then
${csudo} rm -f %{homepath}/cfg/taos.cfg || :
fi
${csudo} rpm -e tdengine || :
${csudo} rpm -e --noscripts tdengine || :
# there can not libtaos.so*, otherwise ln -s error
${csudo} rm -f %{homepath}/driver/libtaos* || :
#Scripts executed after installation
%post