[minor] [install] updated requirements and use python2.7
This commit is contained in:
parent
63945b2e81
commit
0ebe35bbe0
@ -9,21 +9,26 @@ import argparse
|
|||||||
is_redhat = is_debian = None
|
is_redhat = is_debian = None
|
||||||
root_password = None
|
root_password = None
|
||||||
|
|
||||||
requirements = [
|
requirements = [
|
||||||
"chardet",
|
"chardet",
|
||||||
"cssmin",
|
"cssmin",
|
||||||
"dropbox",
|
"dropbox",
|
||||||
"google-api-python-client ",
|
"google-api-python-client",
|
||||||
"jinja2",
|
"gunicorn",
|
||||||
"markdown2",
|
"httplib2",
|
||||||
"MySQL-python",
|
"jinja2",
|
||||||
"pygeoip",
|
"markdown2",
|
||||||
"python-dateutil",
|
"markupsafe",
|
||||||
"python-memcached",
|
"mysql-python",
|
||||||
"pytz==2013b",
|
"pygeoip",
|
||||||
"requests",
|
"python-dateutil",
|
||||||
"termcolor",
|
"python-memcached",
|
||||||
"Werkzeug"
|
"pytz==2013d",
|
||||||
|
"requests",
|
||||||
|
"six",
|
||||||
|
"slugify",
|
||||||
|
"termcolor",
|
||||||
|
"werkzeug"
|
||||||
]
|
]
|
||||||
|
|
||||||
def install(install_path):
|
def install(install_path):
|
||||||
@ -279,8 +284,8 @@ def create_user(username, password):
|
|||||||
|
|
||||||
def setup_cron(install_path):
|
def setup_cron(install_path):
|
||||||
erpnext_cron_entries = [
|
erpnext_cron_entries = [
|
||||||
"*/3 * * * * cd %s && python lib/wnf.py --run_scheduler >> erpnext-sch.log 2>&1" % install_path,
|
"*/3 * * * * cd %s && python2.7 lib/wnf.py --run_scheduler >> erpnext-sch.log 2>&1" % install_path,
|
||||||
"0 */6 * * * cd %s && python lib/wnf.py --backup >> erpnext-backup.log 2>&1" % install_path
|
"0 */6 * * * cd %s && python2.7 lib/wnf.py --backup >> erpnext-backup.log 2>&1" % install_path
|
||||||
]
|
]
|
||||||
for row in erpnext_cron_entries:
|
for row in erpnext_cron_entries:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user