dhcp-static/updateStatics.sh

15 lines
304 B
Bash
Raw Normal View History

2013-03-24 15:43:04 +01:00
#!/bin/sh
2013-03-24 16:12:19 +01:00
# Simple script to update the dhcp-static files from git
2013-03-24 15:43:04 +01:00
2013-03-24 16:12:19 +01:00
# CONFIGURE THIS TO YOUR GIT DIRECTORY
2013-03-24 16:24:05 +01:00
GIT_REPO=/home/dhcpstatic/dhcp-static
2013-03-24 16:12:19 +01:00
# CONFIGURE THIS TO THE USER TO RUN THE GIT COMMANDS AS
2013-03-24 16:24:05 +01:00
USER=dhcpstatic
2013-03-24 16:12:19 +01:00
cd $GIT_REPO
su -c "git pull" $USER
cp $GIT_REPO/static.conf /etc/dhcp/static.conf