Skip to content

Commit

Permalink
Merge pull request AdrianTM#9 from fehlix/master
Browse files Browse the repository at this point in the history
Fix ownership and permissions for restored repositories.
  • Loading branch information
AdrianTM authored Oct 19, 2024
2 parents 6384979 + fe9c482 commit f4d5477
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
mx-repo-manager (24.10.03) mx; urgency=medium

* Fix ownership and permissions for restored repositories.

-- fehlix <[email protected]> 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.
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f4d5477

Please sign in to comment.