mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Remove light mode and change hostname in /etc/amavis/conf.d/50-user
This commit is contained in:
parent
ed0016ed66
commit
9fb6c8a167
1 changed files with 3 additions and 17 deletions
|
@ -123,8 +123,9 @@ def tools_maindomain(old_domain=None, new_domain=None, dyndns=False):
|
|||
'/etc/metronome/metronome.cfg.lua',
|
||||
'/etc/dovecot/dovecot.conf',
|
||||
'/usr/share/yunohost/yunohost-config/others/startup',
|
||||
'/home/yunohost.backup/tahoe/tahoe.cfg'
|
||||
'/etc/amavis/conf.d/05-node_id'
|
||||
'/home/yunohost.backup/tahoe/tahoe.cfg',
|
||||
'/etc/amavis/conf.d/05-node_id',
|
||||
'/etc/amavis/conf.d/50-user'
|
||||
]
|
||||
|
||||
config_dir = []
|
||||
|
@ -220,21 +221,6 @@ def tools_postinstall(domain, password, dyndns=False):
|
|||
if os.system('hostname -d') != 0:
|
||||
os.system('hostname yunohost.yunohost.org')
|
||||
|
||||
# Activate "full" mode if RAM >= 512MB
|
||||
for L in open("/proc/meminfo"):
|
||||
if "MemTotal" in L:
|
||||
if int(L.split(" ")[-2]) < 500000 or not requests.get('http://ip.yunohost.org/'):
|
||||
os.system('touch /etc/yunohost/light')
|
||||
else:
|
||||
os.system('service dspam stop')
|
||||
os.system('chmod -x /etc/cron.daily/dspam')
|
||||
os.system('update-rc.d dspam remove')
|
||||
os.system('sed -i "s/yes/no/g" /etc/default/dspam')
|
||||
os.system('sed -i "s/dspam=no/dspam=yes/" /etc/yunohost/yunohost.conf')
|
||||
os.system('apt-get install -y -qq yunohost-config-amavis')
|
||||
os.system('service amavis start')
|
||||
os.system('apt-get install --reinstall -y -qq yunohost-config-postfix yunohost-config-dovecot')
|
||||
|
||||
# Create SSL CA
|
||||
ssl_dir = '/usr/share/yunohost/yunohost-config/ssl/yunoCA'
|
||||
command_list = [
|
||||
|
|
Loading…
Reference in a new issue