mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] no need for && here
This commit is contained in:
parent
0899ca055e
commit
479a0d0abf
1 changed files with 7 additions and 9 deletions
|
@ -16,20 +16,18 @@ if [[ "$1" == "True" ]]; then
|
|||
|
||||
# Remove previous email services
|
||||
sudo yunohost service remove spamassassin \
|
||||
|| echo "Spamassassin is already removed" \
|
||||
&& sudo systemctl disable spamassassin || true
|
||||
|
||||
|| echo "Spamassassin is already removed"
|
||||
sudo systemctl disable spamassassin || true
|
||||
sudo systemctl stop spamassassin || true
|
||||
sudo rm -f etc/cron.daily/spamassassin
|
||||
|
||||
sudo yunohost service remove amavis \
|
||||
|| echo "Amavis is already removed" \
|
||||
&& sudo systemctl disable amavis || true
|
||||
|| echo "Amavis is already removed"
|
||||
sudo systemctl disable amavis || true
|
||||
sudo systemctl stop amavis || true
|
||||
|
||||
sudo yunohost service remove postgrey \
|
||||
|| echo "Postgrey is already removed" \
|
||||
&& sudo systemctl disable postgrey || true
|
||||
|
||||
sudo systemctl stop spamassassin || true
|
||||
sudo systemctl stop amavis || true
|
||||
sudo systemctl disable postgrey || true
|
||||
sudo systemctl stop postgrey || true
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue