Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low: bash can do find and replace #528

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rgmanager/src/resources/apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ fi;

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all|verify-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/drbd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fi
# This one doesn't need to pass the verify check
case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'` && exit 0
cat ${0/.sh/.metadata}
exit $OCF_ERR_GENERIC
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/lvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ recover|restart)
;;

meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
;;

validate-all|verify-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/named.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/openldap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/orainstance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ status_oracle() {

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
start)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/oralistener.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ recover() {

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
verify-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/postgres-8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/tomcat-5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down
2 changes: 1 addition & 1 deletion rgmanager/src/resources/tomcat-6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ status()

case $1 in
meta-data)
cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`
cat ${0/.sh/.metadata}
exit 0
;;
validate-all)
Expand Down