From 396455fc1a458cc9be0e020e43cfd7e85dcf92e5 Mon Sep 17 00:00:00 2001 From: Jan Winkelmann Date: Sun, 24 Mar 2013 16:12:19 +0100 Subject: [PATCH] updated cron-script --- updateStatics.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/updateStatics.sh b/updateStatics.sh index 1203d4b..c019e94 100644 --- a/updateStatics.sh +++ b/updateStatics.sh @@ -1,3 +1,14 @@ #!/bin/sh +# Simple script to update the dhcp-static files from git -cp static.conf /etc/dhcp/ \ No newline at end of file +# 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