mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] remove failure in the script
This commit is contained in:
parent
64949cea38
commit
83c881f5b4
1 changed files with 7 additions and 4 deletions
|
@ -16,12 +16,15 @@ if [[ "$1" == "True" ]]; then
|
|||
|
||||
# Remove previous email services
|
||||
systemctl is-enabled spamassassin > /dev/null 2>&1 \
|
||||
&& { sudo systemctl disable spamassassin || true ; }
|
||||
&& { sudo systemctl disable spamassassin || true ; } \
|
||||
|| true
|
||||
systemctl is-active spamassassin > /dev/null \
|
||||
&& { sudo systemctl stop spamassassin || true ; }
|
||||
sudo rm -f /etc/cron.daily/spamassassin
|
||||
&& { sudo systemctl stop spamassassin || true ; } \
|
||||
|| true
|
||||
sudo rm -f /etc/cron.daily/spamassassin || true
|
||||
sudo yunohost service status spamassassin > /dev/null 2>&1 \
|
||||
&& { sudo yunohost service remove spamassassin || true ; }
|
||||
&& { sudo yunohost service remove spamassassin || true ; } \
|
||||
|| true
|
||||
|
||||
# 'systemctl is-enabled' does not work for service with no systemd unit file
|
||||
sudo ls /etc/rc2.d/S??amavis > /dev/null 2>&1 \
|
||||
|
|
Loading…
Add table
Reference in a new issue