more fix

Change-Id: I0fbf6e50ab271abbaed72bee25aefc6f3bae6d68
diff --git a/deployment/deploy.sh b/deployment/deploy.sh
index 63cda90..b3ee000 100755
--- a/deployment/deploy.sh
+++ b/deployment/deploy.sh
@@ -48,9 +48,9 @@
   [
 ~EOF
 if [ "$allow_email_challenge" = 'y' ]; then
-    echo '{ "challenge": "email" },' >> ndncert-deploy-ca.conf
+    echo '    { "challenge": "email" },' >> ndncert-deploy-ca.conf
 elif [ "$allow_email_challenge" = 'Y' ]; then
-    echo '{ "challenge": "email" },' >> ndncert-deploy-ca.conf
+    echo '    { "challenge": "email" },' >> ndncert-deploy-ca.conf
 fi
 cat >> ndncert-deploy-ca.conf << ~EOF
     { "challenge": "pin" }
@@ -63,7 +63,7 @@
 ~EOF
 
 sudo touch /usr/local/etc/ndncert/ca.conf
-mv ndncert-deploy-ca.conf /usr/local/etc/ndncert/ca.conf
+sudo mv ndncert-deploy-ca.conf /usr/local/etc/ndncert/ca.conf
 
 echo ""
 }