summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/xymon.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-10-26 20:26:56 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-10-26 20:26:56 (GMT)
commit01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (patch)
tree6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/xymon/xymon.install
parent3a6f9152e03720d73eaf386fdb203028573aebd0 (diff)
parent525bfed2bec6b2671ad3a82aa88b9baf1b01111c (diff)
downloadlinhes_pkgbuild-01c1a60f3b7f93b3ed7404196c2cf798c4d8c674.zip
linhes_pkgbuild-01c1a60f3b7f93b3ed7404196c2cf798c4d8c674.tar.gz
linhes_pkgbuild-01c1a60f3b7f93b3ed7404196c2cf798c4d8c674.tar.bz2
Merge branch 'testing' of linhes.org:linhes_pkgbuild into testingR8.2
Diffstat (limited to 'abs/core/xymon/xymon.install')
-rwxr-xr-xabs/core/xymon/xymon.install37
1 files changed, 31 insertions, 6 deletions
diff --git a/abs/core/xymon/xymon.install b/abs/core/xymon/xymon.install
index 62feb36..4461df4 100755
--- a/abs/core/xymon/xymon.install
+++ b/abs/core/xymon/xymon.install
@@ -17,16 +17,41 @@ post_install() {
sed -i -e "s/localhost/$hostname/" /home/xymon/server/etc/hosts.cfg
sed -i -e "s/\# bbd/\# bbd func/" /home/xymon/server/etc/hosts.cfg
sed -i -e "s/localhost/$hostname/" /home/xymon/server/etc/xymonserver.cfg
- #fix permissions
- chown -R nobody /home/xymon
- chown -R nobody /data/srv/httpd/htdocs/xymon
-
- chown -R nobody:http /data/srv/httpd/htdocs/xymon/snap
+ #fix permissions
+ chown -R nobody:nobody /home/xymon
+ chown -R nobody:nobody /data/srv/httpd/htdocs/xymon
+
+ chown -R nobody:http /data/srv/httpd/htdocs/xymon/snap
chown -R nobody:http /data/srv/httpd/htdocs/xymon/rep
- chmod -R 775 /data/srv/httpd/htdocs/xymon/rep
+ chmod -R 775 /data/srv/httpd/htdocs/xymon/rep
chmod -R 775 /data/srv/httpd/htdocs/xymon/snap
+ chmod g+s /data/srv/httpd/htdocs/xymon/notes/
+ setfacl -d -m g::rw /data/srv/httpd/htdocs/xymon/notes/
+ setfacl -d -m u:nobody:rwx /data/srv/httpd/htdocs/xymon/notes/
+
+ file="/data/srv/httpd/htdocs/xymon/gifs/network.png"
+ if [ -f $file ]
+ then
+ setfacl -m u:nobody:rw $file
+ fi
+
+
+ setfacl -d -m u:nobody:rwx /data/srv/httpd/htdocs/xymon/gifs/
+
+ chmod g+s /home/xymon/etc
+ setfacl -d -m g::rw /home/xymon/etc/
+ setfacl -d -m u::rw /home/xymon/etc/
+ setfacl -d -m u:nobody:rwx /home/xymon/etc/
+
+ file="/home/xymon/etc/mythdot"
+ if [ -f $file ]
+ then
+ setfacl -m u:nobody:rw $file
+ fi
+
+
chown -R nobody /var/log/hobbit
chown root /home/xymon/server/bin/xymonping