diff options
| author | manuel <manuel@mausz.at> | 2014-01-27 18:03:49 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2014-01-27 18:03:49 +0100 |
| commit | 0ee64f201ca34603c94f615497cc309317cc6361 (patch) | |
| tree | e8cdfc47defb52836d51b03916bac6364261ff9c /Makefile-cert.mk | |
| parent | 9fe18ba7b78b15dad862c319aaa346f6e976b77a (diff) | |
| download | qmail-0ee64f201ca34603c94f615497cc309317cc6361.tar.gz qmail-0ee64f201ca34603c94f615497cc309317cc6361.tar.bz2 qmail-0ee64f201ca34603c94f615497cc309317cc6361.zip | |
Replacing obsolete head/tail with POSIX compliant ones
Diffstat (limited to 'Makefile-cert.mk')
| -rw-r--r-- | Makefile-cert.mk | 4 |
1 files 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: | |||
| 9 | PATH=$$PATH:/usr/local/ssl/bin \ | 9 | PATH=$$PATH:/usr/local/ssl/bin \ |
| 10 | openssl req -new -x509 -nodes -days 366 -out $@ -keyout $@ | 10 | openssl req -new -x509 -nodes -days 366 -out $@ -keyout $@ |
| 11 | chmod 640 $@ | 11 | chmod 640 $@ |
| 12 | chown `head -2 conf-users | tail -1`:`head -1 conf-groups` $@ | 12 | chown `head -n 2 conf-users | tail -n -1`:`head -n 1 conf-groups` $@ |
| 13 | 13 | ||
| 14 | req.pem: | 14 | req.pem: |
| 15 | PATH=$$PATH:/usr/local/ssl/bin openssl req \ | 15 | PATH=$$PATH:/usr/local/ssl/bin openssl req \ |
| 16 | -new -nodes -out $@ -keyout QMAIL/control/servercert.pem | 16 | -new -nodes -out $@ -keyout QMAIL/control/servercert.pem |
| 17 | chmod 640 QMAIL/control/servercert.pem | 17 | chmod 640 QMAIL/control/servercert.pem |
| 18 | chown `head -2 conf-users | tail -1`:`head -1 conf-groups` QMAIL/control/servercert.pem | 18 | chown `head -n 2 conf-users | tail -n -1`:`head -n 1 conf-groups` QMAIL/control/servercert.pem |
| 19 | @echo | 19 | @echo |
| 20 | @echo "Send req.pem to your CA to obtain signed_req.pem, and do:" | 20 | @echo "Send req.pem to your CA to obtain signed_req.pem, and do:" |
| 21 | @echo "cat signed_req.pem >> QMAIL/control/servercert.pem" | 21 | @echo "cat signed_req.pem >> QMAIL/control/servercert.pem" |
