提交 4db1f9fa 编写于 作者: P plum-lihui

[Modify the use of sudo commands]

上级 0e0be34d
......@@ -2,6 +2,12 @@
#set -x
#path=`pwd`
insmetaPath="/usr/local/taos/script"
sudo chmod -R 744 ${insmetaPath}
csudo=""
if command -v sudo > /dev/null; then
csudo="sudo"
fi
${csudo} chmod -R 744 ${insmetaPath}
cd ${insmetaPath}
sudo ./post.sh
${csudo} ./post.sh
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册