15 lines
304 B
Bash
Executable file
15 lines
304 B
Bash
Executable file
#!/bin/sh
|
|
# Simple script to update the dhcp-static files from git
|
|
|
|
# CONFIGURE THIS TO YOUR GIT DIRECTORY
|
|
GIT_REPO=/home/dhcpstatic/dhcp-static
|
|
|
|
# CONFIGURE THIS TO THE USER TO RUN THE GIT COMMANDS AS
|
|
USER=dhcpstatic
|
|
|
|
cd $GIT_REPO
|
|
|
|
su -c "git pull" $USER
|
|
|
|
cp $GIT_REPO/static.conf /etc/dhcp/static.conf
|