[opsview-base] [450] use the install to copy it across and change permissions required

4 views
Skip to first unread message

s...@opsview.com

unread,
May 20, 2014, 6:55:35 AM5/20/14
to opsview-...@googlegroups.com
Revision
450
Author
fsiddiqui
Date
2014-05-20 11:55:34 +0100 (Tue, 20 May 2014)

Log Message

use the install to copy it across and change permissions required

Modified Paths

Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2014-05-20 10:43:08 UTC (rev 449)
+++ trunk/Makefile	2014-05-20 10:55:34 UTC (rev 450)
@@ -463,7 +463,6 @@
 
 ${PAGERDUTY_NAGIOS}:
 	tar -xvf ${PAGERDUTY_NAGIOS}.tar.gz
-	chmod 755 ${PAGERDUTY_NAGIOS}.pl
 
 ${JQUERYSPARKLINES}:
 	gunzip -c ${JQUERYSPARKLINES}.gz > ${JQUERYSPARKLINES}
@@ -1085,7 +1084,7 @@
 	#${INSTALL} -c -o ${NAGIOS_USER} -m 0444 flot/excanvas.min.js ${DESTDIR}/${WEB_DIR}/javascript/excanvas.js
 
 ${PAGERDUTY_NAGIOS}-install:
-	mv pagerduty_nagios.pl ${PLUGIN_DIR}/notifications/notify_by_pagerduty
+	${INSTALL} -c -o ${NAGIOS_USER} -m 0755 pagerduty_nagios.pl  ${PLUGIN_DIR}/notifications/notify_by_pagerduty
 
 ${JQUERYSPARKLINES}-install:
 	${INSTALL} -c -o ${NAGIOS_USER} -m 0444 ${JQUERYSPARKLINES} ${DESTDIR}/${WEB_DIR}/javascript/jquery.sparkline.js

Reply all
Reply to author
Forward
0 new messages