@@ -11,7 +11,7 @@ def install(appname, config):
|
|||||||
if (config.has_option(appname, "enabled") and
|
if (config.has_option(appname, "enabled") and
|
||||||
not config.getboolean(appname, "enabled")):
|
not config.getboolean(appname, "enabled")):
|
||||||
return
|
return
|
||||||
utils.printcolor("Installing {}".format(appname), utils.YELLOW)
|
utils.printcolor("Installing {}".format(appname), utils.MAGENTA)
|
||||||
try:
|
try:
|
||||||
script = importlib.import_module(
|
script = importlib.import_module(
|
||||||
"modoboa_installer.scripts.{}".format(appname))
|
"modoboa_installer.scripts.{}".format(appname))
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ def create_user(name, home=None):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
extra_message = "."
|
||||||
|
if home:
|
||||||
|
extra_message = (
|
||||||
|
" but please make sure the {} directory exists.".format(
|
||||||
|
home))
|
||||||
|
utils.printcolor(
|
||||||
|
"User {} already exists, skipping creation{}".format(
|
||||||
|
name, extra_message), utils.YELLOW)
|
||||||
return
|
return
|
||||||
cmd = "useradd -m "
|
cmd = "useradd -m "
|
||||||
if home:
|
if home:
|
||||||
|
|||||||
Reference in New Issue
Block a user