未验证 提交 359a42f5 编写于 作者: L Linhe Huo 提交者: GitHub

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

chore: fix install.sh when not root
...@@ -579,7 +579,7 @@ function install_share_etc() { ...@@ -579,7 +579,7 @@ function install_share_etc() {
out=/etc/${clientName2}/$c.new.`date +%F` out=/etc/${clientName2}/$c.new.`date +%F`
${csudo}cp -f ${script_dir}/share/etc/$c $out ||: ${csudo}cp -f ${script_dir}/share/etc/$c $out ||:
else 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 ||: ${csudo}cp -f ${script_dir}/share/etc/$c /etc/${clientName2}/$c ||:
fi fi
done done
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册