AutoUpdate: Put updater log in the user log directory

This commit is contained in:
OatmealDome 2020-06-29 14:40:12 -04:00
parent 243c6b58fe
commit 833d5a3e9f

View File

@ -227,7 +227,7 @@ void AutoUpdateChecker::TriggerUpdate(const AutoUpdateChecker::NewVersionInforma
updater_flags["parent-pid"] = std::to_string(getpid()); updater_flags["parent-pid"] = std::to_string(getpid());
#endif #endif
updater_flags["install-base-path"] = File::GetExeDirectory(); updater_flags["install-base-path"] = File::GetExeDirectory();
updater_flags["log-file"] = File::GetExeDirectory() + DIR_SEP + UPDATER_LOG_FILE; updater_flags["log-file"] = File::GetUserPath(D_LOGS_IDX) + UPDATER_LOG_FILE;
if (restart_mode == RestartMode::RESTART_AFTER_UPDATE) if (restart_mode == RestartMode::RESTART_AFTER_UPDATE)
updater_flags["binary-to-restart"] = File::GetExePath(); updater_flags["binary-to-restart"] = File::GetExePath();