summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/xymon.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-15 16:08:05 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-15 16:08:05 (GMT)
commit7279cd5152033f4d20b55392559581a8df72b66f (patch)
tree3ace0150684f9303174640a12dcdc4dd6f0a889e /abs/core/xymon/xymon.install
parentf024b872b2b673556a196c2622cc3ea3dd5fc5da (diff)
downloadlinhes_pkgbuild-7279cd5152033f4d20b55392559581a8df72b66f.zip
linhes_pkgbuild-7279cd5152033f4d20b55392559581a8df72b66f.tar.gz
linhes_pkgbuild-7279cd5152033f4d20b55392559581a8df72b66f.tar.bz2
xymon: python2
Diffstat (limited to 'abs/core/xymon/xymon.install')
-rw-r--r--abs/core/xymon/xymon.install24
1 files changed, 0 insertions, 24 deletions
diff --git a/abs/core/xymon/xymon.install b/abs/core/xymon/xymon.install
index 067030e..ec5e242 100644
--- a/abs/core/xymon/xymon.install
+++ b/abs/core/xymon/xymon.install
@@ -22,30 +22,6 @@ post_install() {
chown -R nobody /var/log/hobbit
chown root /data/srv/xymon/server/bin/xymonping
chmod +s /data/srv/xymon/server/bin/xymonping
- echo "Adding sudo permissions for nobody {certmaster-ca}"
- echo "Adding sudo permissions for http {backup_job}"
- echo "Adding sudo permissions for http {sv}"
- LINE="nobody ALL = NOPASSWD:/usr/bin/certmaster-ca"
- LINE1="http ALL = NOPASSWD:/usr/LH/bin/lh_system_backup_job"
- LINE2="http ALL = NOPASSWD:/sbin/sv"
- setfacl -R -m u:nobody:rwx /data/srv/httpd/htdocs
- for i in "$LINE" "$LINE1" "$LINE2"
- do
- cp /etc/sudoers /etc/sudoers.bak
- grep -q "$i" /etc/sudoers
- if [ $? != 0 ]
- then
- echo "$i" >> /etc/sudoers
- visudo -cf /etc/sudoers
- if [ ! $? = 0 ]
- then
- cp /etc/sudoers.bak /etc/sudoers
- echo $i
- echo "Error adding files"
- exit 1
- fi
- fi
- done