Fork自 taosdata / TDengine
#!/bin/bash insmetaPath="/usr/local/taos/script"
csudo="" if command -v sudo > /dev/null; then csudo="sudo" fi
${csudo} chmod -R 744 ${insmetaPath} cd ${insmetaPath} ${csudo} ./preun.sh