From 9d34332be16bc120371de7c2bdeb8c9cb1181d53 Mon Sep 17 00:00:00 2001 From: Ondrej Kubik Date: Wed, 17 Jan 2024 09:58:32 -0800 Subject: [PATCH] debian: use 'install -D' instead 'mkdir + install' Signed-off-by: Ondrej Kubik --- debian/rules | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index fc772519..8a901aff 100755 --- a/debian/rules +++ b/debian/rules @@ -26,10 +26,8 @@ override_dh_python3: override_dh_installinit: dh_installsystemd --no-start --name=console-conf@ dh_installsystemd --no-start --name=serial-console-conf@ - mkdir $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/ - install -m 0644 $(CURDIR)/debian/console-conf.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/ - mkdir $(CURDIR)/debian/console-conf/usr/lib/systemd/system/serial-getty@.service.d/ - install -m 0644 $(CURDIR)/debian/console-conf-serial.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/serial-getty@.service.d/ + install -D -m 0644 $(CURDIR)/debian/console-conf.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/console-conf.conf + install -D -m 0644 $(CURDIR)/debian/console-conf-serial.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/serial-getty@.service.d/console-conf-serial.conf override_dh_auto_test: @echo "No tests."