Add user to group before nginx restart.

This commit is contained in:
Antoine Nguyen
2015-10-15 14:46:35 +02:00
parent f1c3c806e7
commit 5212ee6d0d
2 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,6 @@ import os
from .. import database
from .. import python
from .. import system
from .. import utils
from . import base
@@ -72,4 +71,3 @@ class Modoboa(base.Installer):
self._deploy_instance()
install("uwsgi", self.config)
install("nginx", self.config)
system.add_user_to_group("www-data", self.user)

View File

@@ -2,6 +2,7 @@
import os
from .. import system
from .. import utils
from . import base
@@ -37,3 +38,5 @@ class Nginx(base.Installer):
if os.path.exists(link):
return
os.symlink(dst, link)
system.add_user_to_group(
"www-data", self.config.get("modoboa", "user"))