updated cron-script
This commit is contained in:
		
					parent
					
						
							
								c24154d7cf
							
						
					
				
			
			
				commit
				
					
						396455fc1a
					
				
			
		
					 1 changed files with 12 additions and 1 deletions
				
			
		|  | @ -1,3 +1,14 @@ | |||
| #!/bin/sh | ||||
| # Simple script to update the dhcp-static files from git | ||||
| 
 | ||||
| cp static.conf /etc/dhcp/ | ||||
| # CONFIGURE THIS TO YOUR GIT DIRECTORY | ||||
| GIT_REPO=/home/dhcp/dhcp-static | ||||
| 
 | ||||
| # CONFIGURE THIS TO THE USER TO RUN THE GIT COMMANDS AS | ||||
| USER=dhcp | ||||
| 
 | ||||
| cd $GIT_REPO | ||||
| 
 | ||||
| su -c "git pull" $USER | ||||
| 
 | ||||
| cp $GIT_REPO/static.conf /etc/dhcp/static.conf | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jan Winkelmann
				Jan Winkelmann