From 0ee64f201ca34603c94f615497cc309317cc6361 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 27 Jan 2014 18:03:49 +0100 Subject: Replacing obsolete head/tail with POSIX compliant ones --- Makefile-cert.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile-cert.mk b/Makefile-cert.mk index d869999..b3b3ef5 100644 --- a/Makefile-cert.mk +++ b/Makefile-cert.mk @@ -9,13 +9,13 @@ QMAIL/control/servercert.pem: PATH=$$PATH:/usr/local/ssl/bin \ openssl req -new -x509 -nodes -days 366 -out $@ -keyout $@ chmod 640 $@ - chown `head -2 conf-users | tail -1`:`head -1 conf-groups` $@ + chown `head -n 2 conf-users | tail -n -1`:`head -n 1 conf-groups` $@ req.pem: PATH=$$PATH:/usr/local/ssl/bin openssl req \ -new -nodes -out $@ -keyout QMAIL/control/servercert.pem chmod 640 QMAIL/control/servercert.pem - chown `head -2 conf-users | tail -1`:`head -1 conf-groups` QMAIL/control/servercert.pem + chown `head -n 2 conf-users | tail -n -1`:`head -n 1 conf-groups` QMAIL/control/servercert.pem @echo @echo "Send req.pem to your CA to obtain signed_req.pem, and do:" @echo "cat signed_req.pem >> QMAIL/control/servercert.pem" -- cgit v1.2.3