mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge remote-tracking branch 'origin/unstable' into unstable
This commit is contained in:
commit
f34bb80656
1 changed files with 25 additions and 17 deletions
|
@ -1,25 +1,33 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Add new email services
|
||||
sudo yunohost service add rspamd -l /var/log/mail.log \
|
||||
|| echo "Rspamd is already listed in services"
|
||||
# Execute this hook only if we force the configuration regeneration
|
||||
if [[ "$1" == "True" ]]; then
|
||||
|
||||
sudo yunohost service add rmilter -l /var/log/mail.log \
|
||||
|| echo "Rspamd is already listed in services"
|
||||
# Add new email services
|
||||
sudo yunohost service add rspamd -l /var/log/mail.log \
|
||||
|| echo "Rspamd is already listed in services"
|
||||
|
||||
sudo yunohost service add memcached \
|
||||
|| echo "Memcached is already listed in services"
|
||||
sudo yunohost service add rmilter -l /var/log/mail.log \
|
||||
|| echo "Rspamd is already listed in services"
|
||||
|
||||
# Remove previous email services
|
||||
sudo yunohost service remove spamassassin \
|
||||
|| echo "Spamassassin is already removed" \
|
||||
&& sudo systemctl disable spamassassin || true
|
||||
sudo yunohost service add memcached \
|
||||
|| echo "Memcached is already listed in services"
|
||||
|
||||
sudo yunohost service remove amavis \
|
||||
|| echo "Amavis is already removed" \
|
||||
&& sudo systemctl disable amavis || true
|
||||
# Remove previous email services
|
||||
sudo yunohost service remove spamassassin \
|
||||
|| echo "Spamassassin is already removed" \
|
||||
&& sudo systemctl disable spamassassin || true
|
||||
|
||||
sudo yunohost service remove postgrey \
|
||||
|| echo "Postgrey is already removed" \
|
||||
&& sudo systemctl disable postgrey || true
|
||||
sudo yunohost service remove amavis \
|
||||
|| echo "Amavis is already removed" \
|
||||
&& sudo systemctl disable amavis || true
|
||||
|
||||
sudo yunohost service remove postgrey \
|
||||
|| echo "Postgrey is already removed" \
|
||||
&& sudo systemctl disable postgrey || true
|
||||
|
||||
systemctl stop spamassassin
|
||||
systemctl stop amavis
|
||||
systemctl stop postgrey
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue