Merge pull request #20922 from taosdata/fix/oem-dir-not-found

chore: fix install.sh when not root
This commit is contained in:
Linhe Huo 2023-04-13 16:28:45 +08:00 committed by GitHub
commit 359a42f5cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ function install_share_etc() {
out=/etc/${clientName2}/$c.new.`date +%F`
${csudo}cp -f ${script_dir}/share/etc/$c $out ||:
else
mkdir -p /etc/${clientName2} >/dev/null 2>/dev/null ||:
${csudo}mkdir -p /etc/${clientName2} >/dev/null 2>/dev/null ||:
${csudo}cp -f ${script_dir}/share/etc/$c /etc/${clientName2}/$c ||:
fi
done