]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
Makefile: remember to install all systemd units
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 12 May 2020 03:31:05 +0000 (21:31 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 12 May 2020 03:31:05 +0000 (21:31 -0600)
Reported-by: Unit 193 <unit193@unit193.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/Makefile

index d3d56ccd1de32aed7ab326594cc2c4380f1b2f0d..157153e3efd227211e3d95a29dfd822321793f18 100644 (file)
@@ -90,7 +90,7 @@ install: wg
        @[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_BASHCOMPLETION)" = "yes" ] || exit 0; \
        install -v -m 0644 completion/wg-quick.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/wg-quick"
        @[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_SYSTEMDUNITS)" = "yes" ] || exit 0; \
-       install -v -d "$(DESTDIR)$(SYSTEMDUNITDIR)" && install -v -m 0644 systemd/wg-quick@.service "$(DESTDIR)$(SYSTEMDUNITDIR)/wg-quick@.service"
+       install -v -d "$(DESTDIR)$(SYSTEMDUNITDIR)" && install -v -m 0644 systemd/* "$(DESTDIR)$(SYSTEMDUNITDIR)/"
 
 check: clean
        scan-build --html-title=wireguard-tools -maxloop 100 --view --keep-going $(MAKE) wg