mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Makefile: Move privileged daemon to /usr/lib/freedombox
Tests: - Running make install installs to /usr/lib/freedombox. Non-privileged users don't find it in the path. root user does. - New service file contains path to /usr/lib/freedombox/. Actions works as expected. - Build and install the debian package. Privileged daemon runs as expected and first setup steps complete as expected. First wizard works as expected. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
904e5935cb
commit
e227e9a919
3
Makefile
3
Makefile
@ -37,6 +37,7 @@ DIRECTORIES_TO_CREATE := \
|
|||||||
|
|
||||||
STATIC_FILES_DIRECTORY := $(DESTDIR)/usr/share/plinth/static
|
STATIC_FILES_DIRECTORY := $(DESTDIR)/usr/share/plinth/static
|
||||||
BIN_DIR := $(DESTDIR)/usr/bin
|
BIN_DIR := $(DESTDIR)/usr/bin
|
||||||
|
LIB_DIR := $(DESTDIR)/usr/lib
|
||||||
|
|
||||||
FIND_ARGS := \
|
FIND_ARGS := \
|
||||||
-not -iname "*.log" \
|
-not -iname "*.log" \
|
||||||
@ -102,7 +103,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
|
$(INSTALL) -D -t $(LIB_DIR)/freedombox bin/freedombox-privileged
|
||||||
$(INSTALL) -D -t $(BIN_DIR) bin/freedombox-cmd
|
$(INSTALL) -D -t $(BIN_DIR) bin/freedombox-cmd
|
||||||
|
|
||||||
# Static web server files
|
# Static web server files
|
||||||
|
|||||||
@ -8,7 +8,7 @@ StartLimitIntervalSec=0
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
ExecStart=/usr/bin/freedombox-privileged
|
ExecStart=/usr/lib/freedombox/freedombox-privileged
|
||||||
TimeoutSec=300s
|
TimeoutSec=300s
|
||||||
User=root
|
User=root
|
||||||
Group=root
|
Group=root
|
||||||
|
|||||||
5
debian/freedombox.lintian-overrides
vendored
5
debian/freedombox.lintian-overrides
vendored
@ -19,3 +19,8 @@ freedombox binary: web-application-works-only-with-apache
|
|||||||
# Not documentation
|
# Not documentation
|
||||||
freedombox: package-contains-documentation-outside-usr-share-doc [usr/share/plinth/static/jslicense.html]
|
freedombox: package-contains-documentation-outside-usr-share-doc [usr/share/plinth/static/jslicense.html]
|
||||||
freedombox: package-contains-documentation-outside-usr-share-doc [usr/lib/python3/dist-packages/plinth-*.dist-info/top_level.txt]
|
freedombox: package-contains-documentation-outside-usr-share-doc [usr/lib/python3/dist-packages/plinth-*.dist-info/top_level.txt]
|
||||||
|
|
||||||
|
# This executable is meant to executed from systemd service file and is not
|
||||||
|
# meant for user. However, don't install to /usr/libexec and follow systemd
|
||||||
|
# convention instead.
|
||||||
|
freedombox: executable-in-usr-lib [usr/lib/freedombox/freedombox-privileged]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user