Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
5419c23f
Commit
5419c23f
authored
Dec 28, 2015
by
neil
Browse files
minor, fix install messages
parent
948e8750
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
5419c23f
...
@@ -512,28 +512,28 @@ renewAll() {
...
@@ -512,28 +512,28 @@ renewAll() {
install
()
{
install
()
{
_initpath
_initpath
if
!
command
-v
"curl"
;
then
if
!
command
-v
"curl"
>
/dev/null
;
then
_
info
"Please install curl first."
_
err
"Please install curl first."
_
info
"Ubuntu: sudo apt-get install curl"
_
err
"Ubuntu: sudo apt-get install curl"
_
info
"CentOS: yum install curl"
_
err
"CentOS: yum install curl"
return
1
return
1
fi
fi
if
!
command
-v
"crontab"
;
then
if
!
command
-v
"crontab"
>
/dev/null
;
then
_
info
"Please install crontab first."
_
err
"Please install crontab first."
_
info
"CentOs: yum -y install crontabs"
_
err
"CentOs: yum -y install crontabs"
return
1
return
1
fi
fi
if
!
command
-v
"openssl"
;
then
if
!
command
-v
"openssl"
>
/dev/null
;
then
_
info
"Please install openssl first."
_
err
"Please install openssl first."
_
info
"CentOs: yum -y install openssl"
_
err
"CentOs: yum -y install openssl"
return
1
return
1
fi
fi
if
!
command
-v
"xxd"
;
then
if
!
command
-v
"xxd"
>
/dev/null
;
then
_
info
"Please install xxd first."
_
err
"Please install xxd first."
_
info
"CentOs: yum install vim-common"
_
err
"CentOs: yum install vim-common"
return
1
return
1
fi
fi
...
@@ -553,10 +553,10 @@ install() {
...
@@ -553,10 +553,10 @@ install() {
_info
"Installing cron job"
_info
"Installing cron job"
if
!
crontab
-l
|
grep
'le.sh renewAll'
;
then
if
!
crontab
-l
|
grep
'le.sh renewAll'
;
then
crontab
-l
|
{
cat
;
echo
"0 0 * * * le.sh renewAll"
;
}
| crontab -
crontab
-l
|
{
cat
;
echo
"0 0 * * * le.sh renewAll"
;
}
| crontab -
if
command
-v
crond
;
then
if
command
-v
crond
>
/dev/null
;
then
service cron reload
service cron
d
reload
2>/dev/null
else
else
service cron re
start
service cron re
load 2>/dev/null
fi
fi
fi
fi
...
...
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