mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
bugfixes
This commit is contained in:
parent
0a75fef883
commit
c16c9160b3
1 changed files with 3 additions and 3 deletions
|
@ -184,8 +184,8 @@ def tools_maindomain(old_domain, new_domain, dyndns=False):
|
||||||
try:
|
try:
|
||||||
with open('/etc/yunohost/light') as f: pass
|
with open('/etc/yunohost/light') as f: pass
|
||||||
except IOError:
|
except IOError:
|
||||||
commant_list.append('service amavis restart')
|
command_list.append('service amavis restart')
|
||||||
commant_list.append('service tahoe-lafs restart')
|
command_list.append('service tahoe-lafs restart')
|
||||||
|
|
||||||
for command in command_list:
|
for command in command_list:
|
||||||
if os.system(command) != 0:
|
if os.system(command) != 0:
|
||||||
|
@ -252,7 +252,7 @@ def tools_postinstall(domain, password, dyndns=False):
|
||||||
# Activate "full" mode if RAM >= 512MB
|
# Activate "full" mode if RAM >= 512MB
|
||||||
for L in open("/proc/meminfo"):
|
for L in open("/proc/meminfo"):
|
||||||
if "MemTotal" in L:
|
if "MemTotal" in L:
|
||||||
if int(L.split(" ")[-2]) < 500000 or !requests.get('http://ip.yunohost.org/'):
|
if int(L.split(" ")[-2]) < 500000 or not requests.get('http://ip.yunohost.org/'):
|
||||||
os.system('touch /etc/yunohost/light')
|
os.system('touch /etc/yunohost/light')
|
||||||
else:
|
else:
|
||||||
os.system('service dspam stop')
|
os.system('service dspam stop')
|
||||||
|
|
Loading…
Add table
Reference in a new issue