From e903f39884591490f7a023a730149cb1894b499d Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sat, 17 Nov 2007 01:17:12 +0000 Subject: [PATCH] Use mkdir -p in Makefile and domtool-addcert This gets rid of some warnings that occur when the directory already exists. --- Makefile | 2 +- scripts/domtool-addcert | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e179273..45e6cc5 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,7 @@ install: -cp bin/vmailpasswd /usr/local/bin/ cp src/plugins/domtool-postgres /usr/local/sbin/ cp src/plugins/domtool-mysql /usr/local/sbin/ - -mkdir $(EMACS_DIR) + -mkdir -p $(EMACS_DIR) cp elisp/*.el $(EMACS_DIR)/ .PHONY: grab_lib install_server install_slave diff --git a/scripts/domtool-addcert b/scripts/domtool-addcert index 535d825..3f2313f 100755 --- a/scripts/domtool-addcert +++ b/scripts/domtool-addcert @@ -7,7 +7,7 @@ CERTFILE=/afs/hcoop.net/common/etc/domtool/certs/$1.pem NEW=~/.new.pem KEYIN=~/.keyin -mkdir $KEYDIR || echo Already exists +mkdir -p $KEYDIR openssl genrsa -out $KEYFILE chown -R domtool.domtool $KEYDIR fs sa $KEYDIR $1 read -- 2.20.1