体验新版 GitCode,发现更多精彩内容 >>
#!/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