summaryrefslogtreecommitdiffstats
path: root/snippets
diff options
context:
space:
mode:
authorJames Laska <jlaska@redhat.com>2009-02-10 12:42:22 -0500
committerJames Laska <jlaska@redhat.com>2009-02-10 12:42:22 -0500
commit6b2ed2dfee492d99df13c8bf07ebf06d3d28390c (patch)
tree42aa966ccc473a75e7bdbe169826b3886822d871 /snippets
parente19e7d28ff41cdc4ee0cb9fe710d050b9da7a5fd (diff)
downloadcobbler-6b2ed2dfee492d99df13c8bf07ebf06d3d28390c.tar.gz
cobbler-6b2ed2dfee492d99df13c8bf07ebf06d3d28390c.tar.xz
cobbler-6b2ed2dfee492d99df13c8bf07ebf06d3d28390c.zip
Minor tweaks to post_anamon script
Diffstat (limited to 'snippets')
-rw-r--r--snippets/post_anamon11
1 files changed, 5 insertions, 6 deletions
diff --git a/snippets/post_anamon b/snippets/post_anamon
index 3f7405c6..fc33cfa5 100644
--- a/snippets/post_anamon
+++ b/snippets/post_anamon
@@ -2,18 +2,17 @@
## install anamon script
wget -O /usr/local/sbin/anamon.py "http://$server/cobbler/aux/anamon.py"
-chmod +x /usr/local/sbin/anamon.py
-
+## install anamon system service
wget -O /etc/rc.d/init.d/anamon "http://$server/cobbler/aux/anamon.init"
-chmod +x /usr/local/sbin/anamon.py
-## establish permissions
-chmod 755 /etc/rc.d/init.d/anamon
+## adjust permissions
+chmod 755 /etc/rc.d/init.d/anamon /usr/local/sbin/anamon.py
+test -d /selinux && restorecon /etc/rc.d/init.d/anamon /usr/local/sbin/anamon.py
## enable the script
chkconfig --add anamon
-## configure anamon server
+## configure anamon service
cat << __EOT__ > /etc/sysconfig/anamon
COBBLER_SERVER="$server"
COBBLER_PORT="$http_port"