a
This commit is contained in:
		
					parent
					
						
							
								a64b411ad4
							
						
					
				
			
			
				commit
				
					
						fd1f54c1e1
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -56,5 +56,5 @@ def setup(path, base_dir, file_prefix, etcd_url, etcd_password):
 | 
			
		|||
    # Write Crontab entry
 | 
			
		||||
    with open("/etc/crontabs/root", "a") as crontab:
 | 
			
		||||
        crontab.write(
 | 
			
		||||
            f"*/5\t*\t*\t*\t*\tcd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py"
 | 
			
		||||
            f"*/1\t*\t*\t*\t*\t$(cd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py)\n"
 | 
			
		||||
        )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -54,5 +54,5 @@ def setup(path, base_dir, etcd_url, etcd_password):
 | 
			
		|||
    # Write Crontab entry
 | 
			
		||||
    with open("/etc/crontabs/root", "a") as crontab:
 | 
			
		||||
        crontab.write(
 | 
			
		||||
            f"*/5\t*\t*\t*\t*\tcd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py"
 | 
			
		||||
            f"*/1\t*\t*\t*\t*\t$(cd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py)\n"
 | 
			
		||||
        )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue