ca-install: permissions were only fixed in combined pem case
authorclinton_admin <clinton_admin@fritz.hcoop.net>
Tue, 24 Mar 2015 20:25:13 +0000 (16:25 -0400)
committerclinton_admin <clinton_admin@fritz.hcoop.net>
Tue, 24 Mar 2015 20:25:13 +0000 (16:25 -0400)
Move chmod outside of the if so separate key/cert files are chmoded
instead.

ca-install

index c008d2b..14e66fc 100755 (executable)
@@ -128,8 +128,8 @@ if test -z "$KEY"; then
 else
     echo "Installing certificate and key to Apache SSL directory ..."
     cat "$CERT" "$KEY" | ssh $WEBSERVER sudo tee "$APACHE_DEST" > /dev/null
-    ssh $WEBSERVER sudo chmod 400 "$APACHE_DEST" > /dev/null
 fi
+ssh $WEBSERVER sudo chmod 400 "$APACHE_DEST" > /dev/null
 echo
 
 # Grant Domtool permissions