commit | 3598610f0c8b80eeaa855928784d1035787c3525 | [log] [tgz] |
---|---|---|
author | tylerliu <tylersiqi@163.com> | Sat Oct 17 17:25:29 2020 -0700 |
committer | tylerliu <tylersiqi@163.com> | Sat Oct 17 19:28:26 2020 -0700 |
tree | d658be7102ba2999309ac0482c2daf45c7fbd2c6 | |
parent | 5a7f07a29dffd707430bb169746bc65bf74c8d62 [diff] |
step 2: add sudo check Change-Id: I9688040ad619ca40ce96e6c3b5538c492373f510
diff --git a/deployment/step-2-site-ca.sh b/deployment/step-2-site-ca.sh index 1a38c64..7d4029f 100644 --- a/deployment/step-2-site-ca.sh +++ b/deployment/step-2-site-ca.sh
@@ -1,5 +1,11 @@ #! /bin/bash +# sudo check +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + echo 'Please enter the /ndn certificate:(end with Ctrl-D)' ROOT_CERT=$(cat | tr -d '\n')