Convert spaces to tabs, as tabs appears to be the norm.
diff --git a/install_erpnext.py b/install_erpnext.py
index 184b7d0..885ccf1 100644
--- a/install_erpnext.py
+++ b/install_erpnext.py
@@ -10,20 +10,20 @@
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 @@
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()