rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / cluster / resource-agents / patches / 02-use-bash.patch
blob06e7d8c79ef9d85bd0afb8751c1e624c2b54ef76
1 --- resource-agents-4.1.0/heartbeat/anything.orig
2 +++ resource-agents-4.1.0/heartbeat/anything
3 @@ -1,4 +1,4 @@
4 -#!/bin/sh
5 +#!/usr/bin/bash
7 # OCF Resource Agent compliant resource script.
9 --- resource-agents-4.1.0/heartbeat/apache.orig
10 +++ resource-agents-4.1.0/heartbeat/apache
11 @@ -1,4 +1,4 @@
12 -#!/bin/sh
13 +#!/usr/bin/bash
15 # High-Availability Apache/IBMhttp control script
17 --- resource-agents-4.1.0/heartbeat/asterisk.orig
18 +++ resource-agents-4.1.0/heartbeat/asterisk
19 @@ -1,4 +1,4 @@
20 -#!/bin/sh
21 +#!/usr/bin/bash
24 # Asterisk
25 --- resource-agents-4.1.0/heartbeat/AudibleAlarm.orig
26 +++ resource-agents-4.1.0/heartbeat/AudibleAlarm
27 @@ -1,4 +1,4 @@
28 -#!/bin/sh
29 +#!/usr/bin/bash
31 # Startup script for the Audible Alarm
33 --- resource-agents-4.1.0/heartbeat/awseip.orig
34 +++ resource-agents-4.1.0/heartbeat/awseip
35 @@ -1,4 +1,4 @@
36 -#!/bin/sh
37 +#!/usr/bin/bash
40 # Manage Elastic IP with Pacemaker
41 --- resource-agents-4.1.0/heartbeat/awsvip.orig
42 +++ resource-agents-4.1.0/heartbeat/awsvip
43 @@ -1,4 +1,4 @@
44 -#!/bin/sh
45 +#!/usr/bin/bash
48 # Manage Secondary Private IP with Pacemaker
49 --- resource-agents-4.1.0/heartbeat/ClusterMon.orig
50 +++ resource-agents-4.1.0/heartbeat/ClusterMon
51 @@ -1,4 +1,4 @@
52 -#!/bin/sh
53 +#!/usr/bin/bash
56 # ClusterMon OCF RA.
57 --- resource-agents-4.1.0/heartbeat/CTDB.orig
58 +++ resource-agents-4.1.0/heartbeat/CTDB
59 @@ -1,4 +1,4 @@
60 -#!/bin/sh
61 +#!/usr/bin/bash
63 # OCF Resource Agent for managing CTDB
65 --- resource-agents-4.1.0/heartbeat/db2.orig
66 +++ resource-agents-4.1.0/heartbeat/db2
67 @@ -1,4 +1,4 @@
68 -#!/bin/sh
69 +#!/usr/bin/bash
71 # db2
73 --- resource-agents-4.1.0/heartbeat/Delay.orig
74 +++ resource-agents-4.1.0/heartbeat/Delay
75 @@ -1,4 +1,4 @@
76 -#!/bin/sh
77 +#!/usr/bin/bash
80 # Support: users@clusterlabs.org
81 --- resource-agents-4.1.0/heartbeat/dhcpd.orig
82 +++ resource-agents-4.1.0/heartbeat/dhcpd
83 @@ -1,4 +1,4 @@
84 -#!/bin/sh
85 +#!/usr/bin/bash
87 # Resource Agent for managing dhcpd resources.
89 --- resource-agents-4.1.0/heartbeat/docker.orig
90 +++ resource-agents-4.1.0/heartbeat/docker
91 @@ -1,4 +1,4 @@
92 -#!/bin/sh
93 +#!/usr/bin/bash
95 # The docker HA resource agent creates and launches a docker container
96 # based off a supplied docker image. Containers managed by this agent
97 --- resource-agents-4.1.0/heartbeat/Dummy.orig
98 +++ resource-agents-4.1.0/heartbeat/Dummy
99 @@ -1,4 +1,4 @@
100 -#!/bin/sh
101 +#!/usr/bin/bash
104 # Dummy OCF RA. Does nothing but wait a few seconds, can be
105 --- resource-agents-4.1.0/heartbeat/ethmonitor.orig
106 +++ resource-agents-4.1.0/heartbeat/ethmonitor
107 @@ -1,4 +1,4 @@
108 -#!/bin/sh
109 +#!/usr/bin/bash
111 # OCF Resource Agent compliant script.
112 # Monitor the vitality of a local network interface.
113 --- resource-agents-4.1.0/heartbeat/Evmsd.orig
114 +++ resource-agents-4.1.0/heartbeat/Evmsd
115 @@ -1,4 +1,4 @@
116 -#!/bin/sh
117 +#!/usr/bin/bash
119 # Evmsd OCF RA.
121 --- resource-agents-4.1.0/heartbeat/EvmsSCC.orig
122 +++ resource-agents-4.1.0/heartbeat/EvmsSCC
123 @@ -1,4 +1,4 @@
124 -#!/bin/sh
125 +#!/usr/bin/bash
127 # Support: users@clusterlabs.org
128 # License: GNU General Public License (GPL)
129 --- resource-agents-4.1.0/heartbeat/exportfs.orig
130 +++ resource-agents-4.1.0/heartbeat/exportfs
131 @@ -1,4 +1,4 @@
132 -#!/bin/sh
133 +#!/usr/bin/bash
134 # exportfs
136 # Description: Manages nfs exported file system.
137 --- resource-agents-4.1.0/heartbeat/Filesystem.orig
138 +++ resource-agents-4.1.0/heartbeat/Filesystem
139 @@ -1,4 +1,4 @@
140 -#!/bin/sh
141 +#!/usr/bin/bash
143 # Support: users@clusterlabs.org
144 # License: GNU General Public License (GPL)
145 --- resource-agents-4.1.0/heartbeat/findif.sh.orig
146 +++ resource-agents-4.1.0/heartbeat/findif.sh
147 @@ -1,4 +1,4 @@
148 -#!/bin/sh
149 +#!/usr/bin/bash
150 ipcheck_ipv4() {
151 local r1_to_255="([1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"
152 local r0_to_255="([0-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"
153 --- resource-agents-4.1.0/heartbeat/galera.orig
154 +++ resource-agents-4.1.0/heartbeat/galera
155 @@ -1,4 +1,4 @@
156 -#!/bin/sh
157 +#!/usr/bin/bash
159 # Copyright (c) 2014 David Vossel <davidvossel@gmail.com>
160 # All Rights Reserved.
161 --- resource-agents-4.1.0/heartbeat/garbd.orig
162 +++ resource-agents-4.1.0/heartbeat/garbd
163 @@ -1,4 +1,4 @@
164 -#!/bin/sh
165 +#!/usr/bin/bash
167 # Copyright (c) 2015 Damien Ciabrini <dciabrin@redhat.com>
168 # All Rights Reserved.
169 --- resource-agents-4.1.0/heartbeat/ICP.orig
170 +++ resource-agents-4.1.0/heartbeat/ICP
171 @@ -1,4 +1,4 @@
172 -#!/bin/sh
173 +#!/usr/bin/bash
176 # ICP
177 --- resource-agents-4.1.0/heartbeat/ids.orig
178 +++ resource-agents-4.1.0/heartbeat/ids
179 @@ -1,4 +1,4 @@
180 -#!/bin/sh
181 +#!/usr/bin/bash
184 # ids
185 --- resource-agents-4.1.0/heartbeat/iface-bridge.orig
186 +++ resource-agents-4.1.0/heartbeat/iface-bridge
187 @@ -1,4 +1,4 @@
188 -#!/bin/sh
189 +#!/usr/bin/bash
191 # OCF Resource Agent compliant iface-bridge script.
193 --- resource-agents-4.1.0/heartbeat/iface-vlan.orig
194 +++ resource-agents-4.1.0/heartbeat/iface-vlan
195 @@ -1,4 +1,4 @@
196 -#!/bin/sh
197 +#!/usr/bin/bash
199 # OCF Resource Agent compliant iface-vlan script.
201 --- resource-agents-4.1.0/heartbeat/IPaddr.orig
202 +++ resource-agents-4.1.0/heartbeat/IPaddr
203 @@ -1,4 +1,4 @@
204 -#!/bin/sh
205 +#!/usr/bin/bash
207 # License: GNU General Public License (GPL)
208 # Support: users@clusterlabs.org
209 --- resource-agents-4.1.0/heartbeat/IPaddr2.orig
210 +++ resource-agents-4.1.0/heartbeat/IPaddr2
211 @@ -1,4 +1,4 @@
212 -#!/bin/sh
213 +#!/usr/bin/bash
215 # $Id: IPaddr2.in,v 1.24 2006/08/09 13:01:54 lars Exp $
217 --- resource-agents-4.1.0/heartbeat/IPsrcaddr.orig
218 +++ resource-agents-4.1.0/heartbeat/IPsrcaddr
219 @@ -1,4 +1,4 @@
220 -#!/bin/sh
221 +#!/usr/bin/bash
223 # Description: IPsrcaddr - Preferred source address modification
225 --- resource-agents-4.1.0/heartbeat/iscsi.orig
226 +++ resource-agents-4.1.0/heartbeat/iscsi
227 @@ -1,4 +1,4 @@
228 -#!/bin/sh
229 +#!/usr/bin/bash
231 # iSCSI OCF resource agent
232 # Description: manage iSCSI disks (add/remove) using open-iscsi
233 --- resource-agents-4.1.0/heartbeat/jboss.orig
234 +++ resource-agents-4.1.0/heartbeat/jboss
235 @@ -1,4 +1,4 @@
236 -#!/bin/sh
237 +#!/usr/bin/bash
239 # Description: Manages a Jboss Server as an OCF High-Availability
240 # resource under Heartbeat/LinuxHA control
241 --- resource-agents-4.1.0/heartbeat/LinuxSCSI.orig
242 +++ resource-agents-4.1.0/heartbeat/LinuxSCSI
243 @@ -1,4 +1,4 @@
244 -#!/bin/sh
245 +#!/usr/bin/bash
248 # LinuxSCSI
249 --- resource-agents-4.1.0/heartbeat/LVM.orig
250 +++ resource-agents-4.1.0/heartbeat/LVM
251 @@ -1,4 +1,4 @@
252 -#!/bin/sh
253 +#!/usr/bin/bash
256 # LVM
257 --- resource-agents-4.1.0/heartbeat/MailTo.orig
258 +++ resource-agents-4.1.0/heartbeat/MailTo
259 @@ -1,4 +1,4 @@
260 -#!/bin/sh
261 +#!/usr/bin/bash
263 # Resource script for MailTo
265 --- resource-agents-4.1.0/heartbeat/mysql.orig
266 +++ resource-agents-4.1.0/heartbeat/mysql
267 @@ -1,4 +1,4 @@
268 -#!/bin/sh
269 +#!/usr/bin/bash
272 # MySQL
273 --- resource-agents-4.1.0/heartbeat/mysql-common.sh.orig
274 +++ resource-agents-4.1.0/heartbeat/mysql-common.sh
275 @@ -1,4 +1,4 @@
276 -#!/bin/sh
277 +#!/usr/bin/bash
279 #######################################################################
281 --- resource-agents-4.1.0/heartbeat/mysql-proxy.orig
282 +++ resource-agents-4.1.0/heartbeat/mysql-proxy
283 @@ -1,4 +1,4 @@
284 -#!/bin/sh
285 +#!/usr/bin/bash
287 # Resource script for MySQL Proxy
289 --- resource-agents-4.1.0/heartbeat/nagios.orig
290 +++ resource-agents-4.1.0/heartbeat/nagios
291 @@ -1,4 +1,4 @@
292 -#!/bin/sh
293 +#!/usr/bin/bash
295 # License: GNU General Public License (GPL)
296 # (c) 2015 T.J. Yang, O. Albrigtsen
297 --- resource-agents-4.1.0/heartbeat/named.orig
298 +++ resource-agents-4.1.0/heartbeat/named
299 @@ -1,4 +1,4 @@
300 -#!/bin/sh
301 +#!/usr/bin/bash
303 # Description: Manages a named (Bind) server as an OCF High-Availability
304 # resource
305 --- resource-agents-4.1.0/heartbeat/nfsserver.orig
306 +++ resource-agents-4.1.0/heartbeat/nfsserver
307 @@ -1,4 +1,4 @@
308 -#!/bin/sh
309 +#!/usr/bin/bash
310 # nfsserver
312 # Description: Manages nfs server as OCF resource
313 --- resource-agents-4.1.0/heartbeat/nginx.orig
314 +++ resource-agents-4.1.0/heartbeat/nginx
315 @@ -1,4 +1,4 @@
316 -#!/bin/sh
317 +#!/usr/bin/bash
319 # High-Availability nginx OCF resource agent
321 --- resource-agents-4.1.0/heartbeat/oracle.orig
322 +++ resource-agents-4.1.0/heartbeat/oracle
323 @@ -1,4 +1,4 @@
324 -#!/bin/sh
325 +#!/usr/bin/bash
328 # oracle
329 --- resource-agents-4.1.0/heartbeat/oralsnr.orig
330 +++ resource-agents-4.1.0/heartbeat/oralsnr
331 @@ -1,4 +1,4 @@
332 -#!/bin/sh
333 +#!/usr/bin/bash
336 # oralsnr
337 --- resource-agents-4.1.0/heartbeat/pgagent.orig
338 +++ resource-agents-4.1.0/heartbeat/pgagent
339 @@ -1,4 +1,4 @@
340 -#!/bin/sh
341 +#!/usr/bin/bash
343 # High-Availability pgagent OCF resource agent
345 --- resource-agents-4.1.0/heartbeat/pgsql.orig
346 +++ resource-agents-4.1.0/heartbeat/pgsql
347 @@ -1,4 +1,4 @@
348 -#!/bin/sh
349 +#!/usr/bin/bash
351 # Description: Manages a PostgreSQL Server as an OCF High-Availability
352 # resource
353 --- resource-agents-4.1.0/heartbeat/pingd.orig
354 +++ resource-agents-4.1.0/heartbeat/pingd
355 @@ -1,4 +1,4 @@
356 -#!/bin/sh
357 +#!/usr/bin/bash
360 # pingd OCF Resource Agent
361 --- resource-agents-4.1.0/heartbeat/portblock.orig
362 +++ resource-agents-4.1.0/heartbeat/portblock
363 @@ -1,4 +1,4 @@
364 -#!/bin/sh
365 +#!/usr/bin/bash
367 # portblock: iptables temporary portblocking control
369 --- resource-agents-4.1.0/heartbeat/postfix.orig
370 +++ resource-agents-4.1.0/heartbeat/postfix
371 @@ -1,4 +1,4 @@
372 -#!/bin/sh
373 +#!/usr/bin/bash
375 # Resource script for Postfix
377 --- resource-agents-4.1.0/heartbeat/pound.orig
378 +++ resource-agents-4.1.0/heartbeat/pound
379 @@ -1,4 +1,4 @@
380 -#!/bin/sh
381 +#!/usr/bin/bash
384 # Pound
385 --- resource-agents-4.1.0/heartbeat/proftpd.orig
386 +++ resource-agents-4.1.0/heartbeat/proftpd
387 @@ -1,4 +1,4 @@
388 -#!/bin/sh
389 +#!/usr/bin/bash
391 # Resource script for Proftpd
393 --- resource-agents-4.1.0/heartbeat/Pure-FTPd.orig
394 +++ resource-agents-4.1.0/heartbeat/Pure-FTPd
395 @@ -1,4 +1,4 @@
396 -#!/bin/sh
397 +#!/usr/bin/bash
399 # Resource script for Pure-FTPd
401 --- resource-agents-4.1.0/heartbeat/rabbitmq-cluster.orig
402 +++ resource-agents-4.1.0/heartbeat/rabbitmq-cluster
403 @@ -1,4 +1,4 @@
404 -#!/bin/sh
405 +#!/usr/bin/bash
407 # Copyright (c) 2014 David Vossel <davidvossel@gmail.com>
408 # All Rights Reserved.
409 --- resource-agents-4.1.0/heartbeat/Raid1.orig
410 +++ resource-agents-4.1.0/heartbeat/Raid1
411 @@ -1,4 +1,4 @@
412 -#!/bin/sh
413 +#!/usr/bin/bash
416 # License: GNU General Public License (GPL)
417 --- resource-agents-4.1.0/heartbeat/Route.orig
418 +++ resource-agents-4.1.0/heartbeat/Route
419 @@ -1,4 +1,4 @@
420 -#!/bin/sh
421 +#!/usr/bin/bash
423 # Route OCF RA. Enables and disables network routes.
425 --- resource-agents-4.1.0/heartbeat/rsyncd.orig
426 +++ resource-agents-4.1.0/heartbeat/rsyncd
427 @@ -1,4 +1,4 @@
428 -#!/bin/sh
429 +#!/usr/bin/bash
431 # Resource script for rsync daemon
433 --- resource-agents-4.1.0/heartbeat/SAPDatabase.orig
434 +++ resource-agents-4.1.0/heartbeat/SAPDatabase
435 @@ -1,4 +1,4 @@
436 -#!/bin/sh
437 +#!/usr/bin/bash
439 # SAPDatabase
441 --- resource-agents-4.1.0/heartbeat/SAPInstance.orig
442 +++ resource-agents-4.1.0/heartbeat/SAPInstance
443 @@ -1,4 +1,4 @@
444 -#!/bin/sh
445 +#!/usr/bin/bash
447 # SAPInstance
449 --- resource-agents-4.1.0/heartbeat/scsi2reservation.orig
450 +++ resource-agents-4.1.0/heartbeat/scsi2reservation
451 @@ -1,4 +1,4 @@
452 -#!/bin/sh
453 +#!/usr/bin/bash
454 # by hxinwei@gmail.com
455 # License: GNU General Public License 2 (GPL2)
457 --- resource-agents-4.1.0/heartbeat/SendArp.orig
458 +++ resource-agents-4.1.0/heartbeat/SendArp
459 @@ -1,4 +1,4 @@
460 -#!/bin/sh
461 +#!/usr/bin/bash
464 # Copyright (c) 2006, Huang Zhen <zhen.huang@gmail.com>
465 --- resource-agents-4.1.0/heartbeat/ServeRAID.orig
466 +++ resource-agents-4.1.0/heartbeat/ServeRAID
467 @@ -1,4 +1,4 @@
468 -#!/bin/sh
469 +#!/usr/bin/bash
472 # ServeRAID
473 --- resource-agents-4.1.0/heartbeat/sfex.orig
474 +++ resource-agents-4.1.0/heartbeat/sfex
475 @@ -1,4 +1,4 @@
476 -#!/bin/sh
477 +#!/usr/bin/bash
479 # Shared Disk File EXclusiveness (SF-EX) OCF RA.
480 # prevent a destruction of data on shared disk file system
481 --- resource-agents-4.1.0/heartbeat/SphinxSearchDaemon.orig
482 +++ resource-agents-4.1.0/heartbeat/SphinxSearchDaemon
483 @@ -1,4 +1,4 @@
484 -#!/bin/sh
485 +#!/usr/bin/bash
488 # Searchd OCF RA.
489 --- resource-agents-4.1.0/heartbeat/Stateful.orig
490 +++ resource-agents-4.1.0/heartbeat/Stateful
491 @@ -1,4 +1,4 @@
492 -#!/bin/sh
493 +#!/usr/bin/bash
496 # Example of a stateful OCF Resource Agent.
497 --- resource-agents-4.1.0/heartbeat/symlink.orig
498 +++ resource-agents-4.1.0/heartbeat/symlink
499 @@ -1,4 +1,4 @@
500 -#!/bin/sh
501 +#!/usr/bin/bash
504 # An OCF RA that manages a symlink
505 --- resource-agents-4.1.0/heartbeat/tomcat.orig
506 +++ resource-agents-4.1.0/heartbeat/tomcat
507 @@ -1,4 +1,4 @@
508 -#!/bin/sh
509 +#!/usr/bin/bash
511 # Description: Manages a Tomcat Server as an OCF High-Availability
512 # resource under Heartbeat/LinuxHA control
513 --- resource-agents-4.1.0/heartbeat/varnish.orig
514 +++ resource-agents-4.1.0/heartbeat/varnish
515 @@ -1,4 +1,4 @@
516 -#!/bin/sh
517 +#!/usr/bin/bash
520 # Varnish
521 --- resource-agents-4.1.0/heartbeat/VIPArip.orig
522 +++ resource-agents-4.1.0/heartbeat/VIPArip
523 @@ -1,4 +1,4 @@
524 -#!/bin/sh
525 +#!/usr/bin/bash
527 # License: GNU General Public License (GPL)
528 # Support: users@clusterlabs.org
529 --- resource-agents-4.1.0/heartbeat/VirtualDomain.orig
530 +++ resource-agents-4.1.0/heartbeat/VirtualDomain
531 @@ -1,4 +1,4 @@
532 -#!/bin/sh
533 +#!/usr/bin/bash
535 # Support: users@clusterlabs.org
536 # License: GNU General Public License (GPL)
537 --- resource-agents-4.1.0/heartbeat/vmware.orig
538 +++ resource-agents-4.1.0/heartbeat/vmware
539 @@ -1,4 +1,4 @@
540 -#!/bin/sh
541 +#!/usr/bin/bash
543 # VMware OCF resource agent
545 --- resource-agents-4.1.0/heartbeat/WAS.orig
546 +++ resource-agents-4.1.0/heartbeat/WAS
547 @@ -1,4 +1,4 @@
548 -#!/bin/sh
549 +#!/usr/bin/bash
552 # WAS
553 --- resource-agents-4.1.0/heartbeat/WAS6.orig
554 +++ resource-agents-4.1.0/heartbeat/WAS6
555 @@ -1,4 +1,4 @@
556 -#!/bin/sh
557 +#!/usr/bin/bash
558 # WAS6
560 # Description: Manages a Websphere Application Server as an HA resource
561 --- resource-agents-4.1.0/heartbeat/WinPopup.orig
562 +++ resource-agents-4.1.0/heartbeat/WinPopup
563 @@ -1,4 +1,4 @@
564 -#!/bin/sh
565 +#!/usr/bin/bash
567 # Resource script for sending WinPopups using smbclient
568 # derived from Alan Robertson's MailTo script
569 --- resource-agents-4.1.0/heartbeat/Xen.orig
570 +++ resource-agents-4.1.0/heartbeat/Xen
571 @@ -1,4 +1,4 @@
572 -#!/bin/sh
573 +#!/usr/bin/bash
576 # Support: users@clusterlabs.org
577 --- resource-agents-4.1.0/heartbeat/Xinetd.orig
578 +++ resource-agents-4.1.0/heartbeat/Xinetd
579 @@ -1,4 +1,4 @@
580 -#!/bin/sh
581 +#!/usr/bin/bash
583 # Startup/shutdown script for services managed by xinetd.
585 --- resource-agents-4.1.0/heartbeat/zabbixserver.orig
586 +++ resource-agents-4.1.0/heartbeat/zabbixserver
587 @@ -1,4 +1,4 @@
588 -#!/bin/sh
589 +#!/usr/bin/bash
592 # zabbixserver OCF RA for zabbix_server daemon
593 --- resource-agents-4.1.0/tools/ocf-tester.in.orig
594 +++ resource-agents-4.1.0/tools/ocf-tester.in
595 @@ -1,4 +1,4 @@
596 -#!/bin/sh
597 +#!/usr/bin/bash
599 # $Id: ocf-tester,v 1.2 2006/08/14 09:38:20 andrew Exp $
601 @@ -216,7 +216,7 @@
602 test_permissions() {
603 action=meta-data
604 debug ${1:-"Testing permissions with uid nobody"}
605 - su nobody -s /bin/sh -c "$agent $action" > /dev/null
606 + su nobody -s /usr/bin/bash -c "$agent $action" > /dev/null
609 test_metadata() {