Add step for check index path permission.

This commit is contained in:
iaom 2021-07-15 21:03:07 +08:00
parent dc30f444d4
commit f1ce5825aa
1 changed files with 6 additions and 0 deletions

View File

@ -180,6 +180,12 @@ int main(int argc, char *argv[]) {
syslog(LOG_ERR, "集中管控目录未挂载!!\n");
::sleep(1);
}
while(!QFileInfo("/media/用户保险箱").permission(QFileDevice::WriteUser)) {
qWarning() << "/media/用户保险箱 无写入权限!!";
printf("/media/用户保险箱 无写入权限!!");
syslog(LOG_ERR, "/media/用户保险箱 无写入权限!!\n");
::sleep(1);
}
// Output log to file