Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
ce56c1bb
Commit
ce56c1bb
authored
Feb 06, 2016
by
neil
Browse files
generate default sample account.conf for the first time install
parent
b47723ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
ce56c1bb
...
@@ -1057,6 +1057,35 @@ _detect_profile() {
...
@@ -1057,6 +1057,35 @@ _detect_profile() {
fi
fi
}
}
_initconf
()
{
_initpath
if
[
!
-f
"
$ACCOUNT_CONF_PATH
"
]
;
then
echo
"#Account configurations:
#Here are the supported macros, uncomment them to make them take effect.
#ACCOUNT_EMAIL=aaa@aaa.com # the account email used to register account.
#STAGE=1 # Use the staging api
#FORCE=1 # Force to issue cert
#dns api
#######################
#Cloudflare:
#api key
#CF_Key="
sdfsdfsdfljlbjkljlkjsdfoiwje
"
#account email
#CF_Email="
xxxx@sss.com
"
#######################
#Dnspod.cn:
#api key id
#DP_Id="
1234
"
#api key
#DP_Key="
sADDsdasdgdsf
"
"
>
$ACCOUNT_CONF_PATH
fi
}
install
()
{
install
()
{
_initpath
_initpath
...
@@ -1120,6 +1149,9 @@ alias le.sh=\"$LE_WORKING_DIR/le.sh\"
...
@@ -1120,6 +1149,9 @@ alias le.sh=\"$LE_WORKING_DIR/le.sh\"
installcronjob
installcronjob
if
[
!
-f
"
$ACCOUNT_CONF_PATH
"
]
;
then
_initconf
fi
_info OK
_info OK
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment