Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix install fail caused by postinst execute fail #113

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
deepin-anything (6.1.9) unstable; urgency=medium

* update log.

-- Deepin Package Builder <[email protected]> Fri, 17 May 2024 10:32:00 +0800

deepin-anything (6.1.8) unstable; urgency=medium

* fix server core dump on restart.
Expand Down
4 changes: 2 additions & 2 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -e

getent group deepin-anything >/dev/null || /usr/sbin/groupadd --system deepin-anything
getent group deepin-anything >/dev/null || /usr/sbin/groupadd --system deepin-anything || true
getent passwd deepin-anything >/dev/null || /usr/sbin/useradd --system -c "deepin-anything User" \
-d /var/lib/deepin-anything -m -g deepin-anything -s /usr/sbin/nologin \
-G deepin-anything deepin-anything
-G deepin-anything deepin-anything || true
3 changes: 3 additions & 0 deletions src/server/backend/lib/lftmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ QStringList LFTManager::insertFileToLFTBuf(const QByteArray &file)
} else {
if (r == ERR_NO_MEM) {
cWarning() << "Failed(No Memory):" << mount_path;
} else if (r == ERR_PATH_EXISTS) {
/* 由于事件合并的原因, 会经常导致报告此类错误. 由于它不属于程序问题, 特此降低日志等级 */
cDebug() << "Failed(Path Exists):" << mount_path;
} else {
cWarning() << "Failed:" << mount_path << ", result:" << r;
}
Expand Down
4 changes: 0 additions & 4 deletions src/server/backend/lib/logsaver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ void LogSaverPrivate::startSaveDir(const QString &logPath)

bool LogSaverPrivate::initLogFile()
{
if (logDir.isEmpty()) {
return false;
}

// 程序每次启动时 logFile 为 nullptr
if (logFile == nullptr) {
QString logPath = logDir.absoluteFilePath("app.log");
Expand Down
Loading