Use python3 now by default.
This commit is contained in:
13
README.rst
13
README.rst
@@ -28,18 +28,7 @@ Usage::
|
|||||||
|
|
||||||
$ git clone https://github.com/modoboa/modoboa-installer
|
$ git clone https://github.com/modoboa/modoboa-installer
|
||||||
$ cd modoboa-installer
|
$ cd modoboa-installer
|
||||||
$ sudo ./run.py <your domain>
|
$ sudo python3 run.py <your domain>
|
||||||
|
|
||||||
.. note::
|
|
||||||
|
|
||||||
On some systems (Ubuntu 20.04 for example), you might encounter the
|
|
||||||
following issue::
|
|
||||||
|
|
||||||
/usr/bin/env: 'python': No such file or directory
|
|
||||||
|
|
||||||
If so, try to run the command like this::
|
|
||||||
|
|
||||||
$ sudo python3 run.py <your domain>
|
|
||||||
|
|
||||||
A configuration file will be automatically generated the first time
|
A configuration file will be automatically generated the first time
|
||||||
you run the installer, please don't copy the
|
you run the installer, please don't copy the
|
||||||
|
|||||||
4
run.py
4
run.py
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""An installer for Modoboa."""
|
"""An installer for Modoboa."""
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ def main(input_args):
|
|||||||
config.set("general", "domain", args.domain)
|
config.set("general", "domain", args.domain)
|
||||||
config.set("dovecot", "domain", args.domain)
|
config.set("dovecot", "domain", args.domain)
|
||||||
config.set("modoboa", "version", args.version)
|
config.set("modoboa", "version", args.version)
|
||||||
# Display disclaimer
|
# Display disclaimerpython 3 linux distribution
|
||||||
if not args.upgrade:
|
if not args.upgrade:
|
||||||
installation_disclaimer(args, config)
|
installation_disclaimer(args, config)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user