Edited README, fix backup run process
This commit is contained in:
@@ -100,11 +100,12 @@ An experimental backup mode is available.
|
||||
.. note::
|
||||
|
||||
You must keep the original configuration file, ie the one used for
|
||||
the installation. Otherwise, you will need to recreate it manually with the right informations !.
|
||||
the installation. Otherwise, you will need to recreate it manually with the right informations !
|
||||
|
||||
You can start the process as follows::
|
||||
|
||||
$ sudo ./run.py --backup <your domain>
|
||||
.. note::
|
||||
|
||||
Then follow the step on the console
|
||||
|
||||
Change the generated hostname
|
||||
|
||||
@@ -6,16 +6,11 @@ import sys
|
||||
from .. import utils
|
||||
|
||||
|
||||
def install(appname, config, upgrade, backup):
|
||||
def install(appname, config, upgrade):
|
||||
"""Install an application."""
|
||||
if (config.has_option(appname, "enabled") and
|
||||
not config.getboolean(appname, "enabled")):
|
||||
return
|
||||
if backup:
|
||||
utils.printcolor("Starting up backup...", utils.MAGENTA)
|
||||
script = importlib.import_module("modoboa_installer.backup")
|
||||
getattr(script, "BACKUP"())(config).run()
|
||||
return
|
||||
utils.printcolor("Installing {}".format(appname), utils.MAGENTA)
|
||||
try:
|
||||
script = importlib.import_module(
|
||||
|
||||
5
run.py
5
run.py
@@ -15,7 +15,7 @@ from modoboa_installer import scripts
|
||||
from modoboa_installer import ssl
|
||||
from modoboa_installer import system
|
||||
from modoboa_installer import utils
|
||||
|
||||
from modoboa_installer.scripts import backup
|
||||
|
||||
def installation_disclaimer(args, config):
|
||||
"""Display installation disclaimer."""
|
||||
@@ -105,6 +105,9 @@ def main(input_args):
|
||||
upgrade_disclaimer(config)
|
||||
elif args.backup:
|
||||
backup_disclamer()
|
||||
backupProcess = backup.Backup(config)
|
||||
backupProcess.run()
|
||||
return
|
||||
else:
|
||||
installation_disclaimer(args, config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user