fix: fix packaging condition test in the scripts

Close [TD-20142](https://jira.taosdata.com:18080/browse/TD-20142)
This commit is contained in:
Huo Linhe 2022-11-03 12:25:01 +08:00
parent 4039e99d96
commit f17d1d1e31
1 changed files with 8 additions and 4 deletions

View File

@ -285,10 +285,14 @@ if [[ $dbName == "taos" ]]; then
fi fi
# Add web files # Add web files
if [ -d "${web_dir}/admin" ]; then if [ "$verMode" == "cluster" ] || [ "$verMode" == "cloud" ]; then
mkdir -p ${install_dir}/share/ if [ -d "${web_dir}/admin" ] ; then
cp ${web_dir}/admin ${install_dir}/share/ -r mkdir -p ${install_dir}/share/
cp ${web_dir}/png/taos.png ${install_dir}/share/admin/images/taos.png cp ${web_dir}/admin ${install_dir}/share/ -r
cp ${web_dir}/png/taos.png ${install_dir}/share/admin/images/taos.png
else
echo "directory not found for enterprise release: ${web_dir}/admin"
fi
fi fi
fi fi