Use python3 now by default.

This commit is contained in:
Antoine Nguyen
2020-09-17 11:57:50 +02:00
parent 1fa390513d
commit 94346ee58a
2 changed files with 3 additions and 14 deletions

View File

@@ -28,17 +28,6 @@ Usage::
$ git clone https://github.com/modoboa/modoboa-installer
$ cd modoboa-installer
$ sudo ./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

4
run.py
View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""An installer for Modoboa."""
@@ -87,7 +87,7 @@ def main(input_args):
config.set("general", "domain", args.domain)
config.set("dovecot", "domain", args.domain)
config.set("modoboa", "version", args.version)
# Display disclaimer
# Display disclaimerpython 3 linux distribution
if not args.upgrade:
installation_disclaimer(args, config)
else: