Convert spaces to tabs, as tabs appears to be the norm.

This commit is contained in:
Jev Bjorsell 2013-11-17 16:30:25 -08:00
parent 449d8852ee
commit ffd851eb34

View File

@ -10,20 +10,20 @@ 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", "jinja2",
"markdown2", "markdown2",
"MySQL-python", "MySQL-python",
"pygeoip", "pygeoip",
"python-dateutil", "python-dateutil",
"python-memcached", "python-memcached",
"pytz==2013b", "pytz==2013b",
"requests", "requests",
"termcolor", "termcolor",
"Werkzeug" "Werkzeug"
] ]
def install(install_path): def install(install_path):
@ -278,17 +278,17 @@ def create_user(username, password):
return pwd.getpwnam(username).pw_uid return pwd.getpwnam(username).pw_uid
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 && 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 "0 */6 * * * cd %s && python 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:
existing_cron = exec_in_shell("crontab -l") existing_cron = exec_in_shell("crontab -l")
if row not in existing_cron: if row not in existing_cron:
exec_in_shell('{ crontab -l; echo "%s"; } | crontab' % row) exec_in_shell('{ crontab -l; echo "%s"; } | crontab' % row)
except: except:
exec_in_shell('echo "%s" | crontab' % row) exec_in_shell('echo "%s" | crontab' % row)
if __name__ == "__main__": if __name__ == "__main__":
args = parse_args() args = parse_args()