debian: use 'install -D' instead 'mkdir + install'

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
This commit is contained in:
Ondrej Kubik 2024-01-17 09:58:32 -08:00
parent 753ce9f701
commit 9d34332be1
1 changed files with 2 additions and 4 deletions

6
debian/rules vendored
View File

@ -26,10 +26,8 @@ override_dh_python3:
override_dh_installinit: override_dh_installinit:
dh_installsystemd --no-start --name=console-conf@ dh_installsystemd --no-start --name=console-conf@
dh_installsystemd --no-start --name=serial-console-conf@ dh_installsystemd --no-start --name=serial-console-conf@
mkdir $(CURDIR)/debian/console-conf/usr/lib/systemd/system/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 -m 0644 $(CURDIR)/debian/console-conf.conf $(CURDIR)/debian/console-conf/usr/lib/systemd/system/getty@.service.d/ 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
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/
override_dh_auto_test: override_dh_auto_test:
@echo "No tests." @echo "No tests."