privileged: Add /bin file for privileged daemon

- So that it can be invoked easily from the command line and systemd service.

Tests:

- make install creates /usr/bin/freedombox-privileged daemon which can be run as
  root.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa authored and Joseph Nuthalapati committed 2025-08-16 22:41:12 +05:30
1 parent c47a856e3e
commit a6089664eb
3 files changed
+8

No files matched your search

+1
View File
@@ -98,6 +98,7 @@ install:
rm -f $(DESTDIR)$${lib_dir}/plinth*.dist-info/COPYING.md && \ rm -f $(DESTDIR)$${lib_dir}/plinth*.dist-info/COPYING.md && \
rm -f $(DESTDIR)$${lib_dir}/plinth*.dist-info/direct_url.json && \ rm -f $(DESTDIR)$${lib_dir}/plinth*.dist-info/direct_url.json && \
$(INSTALL) -D -t $(BIN_DIR) bin/plinth $(INSTALL) -D -t $(BIN_DIR) bin/plinth
$(INSTALL) -D -t $(BIN_DIR) bin/freedombox-privileged
# Actions # Actions
$(INSTALL) -D -t $(DESTDIR)/usr/share/plinth/actions actions/actions $(INSTALL) -D -t $(DESTDIR)/usr/share/plinth/actions actions/actions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/python3
# SPDX-License-Identifier: AGPL-3.0-or-later
import plinth.privileged_daemon
plinth.privileged_daemon.main()
+1
View File
@@ -103,6 +103,7 @@ build-backend = "setuptools.build_meta"
[project.scripts] [project.scripts]
plinth = "plinth.__main__:main" plinth = "plinth.__main__:main"
freedombox-privileged = "plinth.privileged_daemon:main"
[tool.setuptools.dynamic] [tool.setuptools.dynamic]
version = {attr = "plinth.__version__"} version = {attr = "plinth.__version__"}