[fix] Change /home/yunohost.app permissions at postinstall (fix #40)

This commit is contained in:
Jérôme Lebleu 2014-10-07 21:39:01 +02:00
parent a65f90db95
commit c018bb0710

View file

@ -257,6 +257,9 @@ def tools_postinstall(domain, password, dyndns=False):
try: os.listdir(folder)
except OSError: os.makedirs(folder)
# Change folders permissions
os.system('chmod 755 /home/yunohost.app')
# Set hostname to avoid amavis bug
if os.system('hostname -d') != 0:
os.system('hostname yunohost.yunohost.org')