From c018bb07105ba109e2608112ec13120f278fa80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Tue, 7 Oct 2014 21:39:01 +0200 Subject: [PATCH] [fix] Change /home/yunohost.app permissions at postinstall (fix #40) --- tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools.py b/tools.py index aa175abb0..5667c4d09 100644 --- a/tools.py +++ b/tools.py @@ -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')