WrtUtilMakeDir(sharedPath);
WrtUtilMakeDir(m_context.locations->getSharedResourceDir());
+ changeOwnerForDirectory(m_context.locations->getSharedDataDir(),
+ SHARED_STORAGE_MODE);
+ changeOwnerForDirectory(m_context.locations->getSharedTrustedDir(),
+ SHARED_STORAGE_MODE);
+
if (m_context.isUpdateMode) { //update
std::string backSharedData = m_context.locations->getBackupSharedDir();
std::string BackSharedTrusted = m_context.locations->getBackupSharedDir();
-
/* Restore /shared/data */
LogDebug("copy " << m_context.locations->getBackupSharedDataDir() <<
" to " << m_context.locations->getSharedDataDir());
ThrowMsg(Exceptions::BackupFailed,
"Error occurs copy shared strage files");
}
- } else {
- changeOwnerForDirectory(m_context.locations->getSharedDataDir(),
- SHARED_STORAGE_MODE);
- changeOwnerForDirectory(m_context.locations->getSharedTrustedDir(),
- SHARED_STORAGE_MODE);
}
}