From ffd851eb3493fd6a16da800bb6ddffe595a069f0 Mon Sep 17 00:00:00 2001 From: Jev Bjorsell Date: Sun, 17 Nov 2013 16:30:25 -0800 Subject: [PATCH] Convert spaces to tabs, as tabs appears to be the norm. --- install_erpnext.py | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/install_erpnext.py b/install_erpnext.py index 184b7d078c..885ccf1f80 100644 --- a/install_erpnext.py +++ b/install_erpnext.py @@ -10,20 +10,20 @@ is_redhat = is_debian = None root_password = None requirements = [ - "chardet", - "cssmin", - "dropbox", - "google-api-python-client ", - "jinja2", - "markdown2", - "MySQL-python", - "pygeoip", - "python-dateutil", - "python-memcached", - "pytz==2013b", - "requests", - "termcolor", - "Werkzeug" + "chardet", + "cssmin", + "dropbox", + "google-api-python-client ", + "jinja2", + "markdown2", + "MySQL-python", + "pygeoip", + "python-dateutil", + "python-memcached", + "pytz==2013b", + "requests", + "termcolor", + "Werkzeug" ] def install(install_path): @@ -278,17 +278,17 @@ def create_user(username, password): return pwd.getpwnam(username).pw_uid def setup_cron(install_path): - erpnext_cron_entries = [ - "*/3 * * * * cd %s && python 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 - ] - for row in erpnext_cron_entries: - try: - existing_cron = exec_in_shell("crontab -l") - if row not in existing_cron: - exec_in_shell('{ crontab -l; echo "%s"; } | crontab' % row) - except: - exec_in_shell('echo "%s" | crontab' % row) + erpnext_cron_entries = [ + "*/3 * * * * cd %s && python 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 + ] + for row in erpnext_cron_entries: + try: + existing_cron = exec_in_shell("crontab -l") + if row not in existing_cron: + exec_in_shell('{ crontab -l; echo "%s"; } | crontab' % row) + except: + exec_in_shell('echo "%s" | crontab' % row) if __name__ == "__main__": args = parse_args()