From fe9c48228df2de785a3e875cf2263b7f96064738 Mon Sep 17 00:00:00 2001 From: fehlix Date: Sun, 20 Oct 2024 00:28:37 +0200 Subject: [PATCH] Fix ownership and permissions for restored repositories. --- debian/changelog | 6 ++++++ mainwindow.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index edf5d05..1c2be5f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mx-repo-manager (24.10.03) mx; urgency=medium + + * Fix ownership and permissions for restored repositories. + + -- fehlix Sat, 19 Oct 2024 18:25:44 -0400 + mx-repo-manager (24.10.02) mx; urgency=medium * Prompt to enable AHS only if it hasn't been recognized and no MX repository is active. diff --git a/mainwindow.cpp b/mainwindow.cpp index 7fabc0b..a873174 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -804,7 +804,7 @@ void MainWindow::pushRestoreSources_clicked() } // Move the sources list files from the temporary directory to /etc/apt/sources.list.d/ - cmd = QString("mv -b %1/mx-sources-mx%2/*.list /etc/apt/sources.list.d/") + cmd = QString("mv -b %1/mx-sources-mx%2/*.list /etc/apt/sources.list.d/ && chown 0:0 /etc/apt/sources.list.d/* && chmod 644 /etc/apt/sources.list.d/*") .arg(tmpdir.path(), QString::number(mx_version)); shell->runAsRoot(cmd);