Merge pull request #5143 from taosdata/hotfix/sangshuduo/TD-2936-change-mac-default-path
[TD-2936] <fix>: change default path to follow mac standard.
This commit is contained in:
commit
3347aa6c84
|
@ -29,17 +29,15 @@ static const char* expand_like_shell(const char *path) {
|
||||||
|
|
||||||
void osInit() {
|
void osInit() {
|
||||||
if (configDir[0] == 0) {
|
if (configDir[0] == 0) {
|
||||||
strcpy(configDir, expand_like_shell("~/TDengine/cfg"));
|
strcpy(configDir, expand_like_shell("/usr/local/etc/taos"));
|
||||||
}
|
}
|
||||||
|
strcpy(tsDataDir, expand_like_shell("/usr/local/var/lib/taos"));
|
||||||
|
strcpy(tsLogDir, expand_like_shell("/usr/local/var/log/taos"));
|
||||||
|
strcpy(tsScriptDir, expand_like_shell("/usr/local/etc/taos"));
|
||||||
|
|
||||||
strcpy(tsVnodeDir, "");
|
strcpy(tsVnodeDir, "");
|
||||||
strcpy(tsDnodeDir, "");
|
strcpy(tsDnodeDir, "");
|
||||||
strcpy(tsMnodeDir, "");
|
strcpy(tsMnodeDir, "");
|
||||||
|
|
||||||
strcpy(tsDataDir, expand_like_shell("~/TDengine/data"));
|
|
||||||
strcpy(tsLogDir, expand_like_shell("~/TDengine/log"));
|
|
||||||
strcpy(tsScriptDir, expand_like_shell("~/TDengine/cfg"));
|
|
||||||
|
|
||||||
strcpy(tsOsName, "Darwin");
|
strcpy(tsOsName, "Darwin");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue