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

[Modify the use of sudo commands]

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