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
6d0a26f4
Commit
6d0a26f4
authored
Jan 07, 2016
by
neil
Browse files
fix uninstall
parent
01ba8216
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
6d0a26f4
...
...
@@ -639,7 +639,7 @@ install() {
SUDO
=
sudo
fi
fi
if
!
crontab
-l
|
grep
'le
.sh
renewAll'
;
then
if
!
crontab
-l
|
grep
'le renewAll'
;
then
crontab
-l
|
{
cat
;
echo
"0 0 * * *
$SUDO
le renewAll > /dev/null"
;
}
| crontab -
if
command
-v
crond
>
/dev/null
;
then
service crond reload
>
/dev/null
...
...
@@ -656,12 +656,12 @@ uninstall() {
_initpath
_info
"Removing cron job"
if
crontab
-l
|
grep
'le
.sh
renewAll'
;
then
crontab
-l
|
sed
"/le
.sh
renewAll/d"
| crontab -
if
crontab
-l
|
grep
'le renewAll'
;
then
crontab
-l
|
sed
"/le renewAll/d"
| crontab -
if
command
-v
crond
>
/dev/null
;
then
service crond reload
2
>/dev/null
service crond reload
>
/dev/null
else
service cron reload
2
>/dev/null
service cron reload
>
/dev/null
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