add sudo to aviod password

This commit is contained in:
Ping Xiao 2021-03-02 13:47:01 +08:00
parent b6c3ef5b62
commit 417bfd771d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ IN_TDINTERNAL="community"
function stopTaosd {
echo "Stop taosd"
systemctl stop taosd
sudo systemctl stop taosd
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
while [ -n "$PID" ]
do