Add user to group before nginx restart.
This commit is contained in:
@@ -4,7 +4,6 @@ import os
|
|||||||
|
|
||||||
from .. import database
|
from .. import database
|
||||||
from .. import python
|
from .. import python
|
||||||
from .. import system
|
|
||||||
from .. import utils
|
from .. import utils
|
||||||
|
|
||||||
from . import base
|
from . import base
|
||||||
@@ -72,4 +71,3 @@ class Modoboa(base.Installer):
|
|||||||
self._deploy_instance()
|
self._deploy_instance()
|
||||||
install("uwsgi", self.config)
|
install("uwsgi", self.config)
|
||||||
install("nginx", self.config)
|
install("nginx", self.config)
|
||||||
system.add_user_to_group("www-data", self.user)
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from .. import system
|
||||||
from .. import utils
|
from .. import utils
|
||||||
|
|
||||||
from . import base
|
from . import base
|
||||||
@@ -37,3 +38,5 @@ class Nginx(base.Installer):
|
|||||||
if os.path.exists(link):
|
if os.path.exists(link):
|
||||||
return
|
return
|
||||||
os.symlink(dst, link)
|
os.symlink(dst, link)
|
||||||
|
system.add_user_to_group(
|
||||||
|
"www-data", self.config.get("modoboa", "user"))
|
||||||
|
|||||||
Reference in New Issue
Block a user