path: root/Makefile
diff options
authorMichael DeHaan <>2007-10-19 16:44:06 -0400
committerMichael DeHaan <>2007-10-19 16:44:06 -0400
commit1b1222ec7f95a773fcab39bf1ebe68da198919be (patch)
treeb180dc9a976886f143d0743cd725d3ec5bd3c707 /Makefile
parentd09c20fc07efb87cffcbac467f189e312eb67e9e (diff)
Service restarting has been abstracted out of the action_sync code, and is now a trigger.
This commit adds pre/post sync triggers, for scripting of arbitrary actions. The idea is that a cobbler user can now modify the restart-services script to rsync DHCP configurations to a remote box and instead restart them there, for hosting DHCP on a different box. Or do anything else that might be required. The restart-services trigger will ship in the cobbler RPM. Users can modify it at will and it is marked as config(noreplace) so upgrades will not affect it.
Diffstat (limited to 'Makefile')
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4004fbe..14e7e47 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ devinstall:
cp /tmp/cobbler_settings /var/lib/cobbler/settings
cp /tmp/cobbler_auth.conf /etc/cobbler/auth.conf
cp /tmp/cobbler_modules.conf /etc/cobbler/modules.conf
+ find /var/lib/cobbler/triggers | xargs chmod +x
sdist: clean messages updatewui
python sdist
@@ -51,7 +52,7 @@ messages: cobbler/*.py
sed -i'~' -e 's/SOME DESCRIPTIVE TITLE/cobbler/g' -e 's/YEAR THE PACKAGE'"'"'S COPYRIGHT HOLDER/2007 Red Hat, Inc. /g' -e 's/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR/Michael DeHaan <>, 2007/g' -e 's/PACKAGE VERSION/cobbler $(VERSION)-$(RELEASE)/g' -e 's/PACKAGE/cobbler/g' $(MESSAGESPOT)
-rpms: manpage sdist
+rpms: clean manpage sdist
mkdir -p rpm-build
cp dist/*.gz rpm-build/
rpmbuild --define "_topdir %(pwd)/rpm-build" \