summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/xymon.install
diff options
context:
space:
mode:
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