1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

Fix some more bashisms

(This used to be ctdb commit 3d82ca5b1b8ba2770c739493aa0cdd34bb4827d8)
This commit is contained in:
Mathieu Parent 2010-03-04 16:06:11 +01:00 committed by Ronnie Sahlberg
parent e7bca0dcfc
commit c57c06df8c
2 changed files with 9 additions and 4 deletions

View File

@ -41,7 +41,7 @@ case "$1" in
NATGWIP=`ctdb natgwlist | head -1 | sed -e "s/^[^ ]* *//"`
CTDB_NATGW_PUBLIC_IP_HOST=`echo $CTDB_NATGW_PUBLIC_IP | sed -e "s/\/.*/\/32/"`
if [ "$NATGWMASTER" == "-1" ]; then
if [ "$NATGWMASTER" = "-1" ]; then
echo "There is not NATGW master node"
exit 1
fi

View File

@ -75,7 +75,7 @@ lock_file() {
stat -c%y "$lckf"
return 1
}
kill -0 $pid && {
/bin/kill -0 $pid && {
lock_debug "lock file $lckf is valid for process $pid"
stat -c%y "$lckf"
return 1
@ -165,7 +165,10 @@ run_release_script_once()
#echo "run it: end"
}
echo -e "#!/bin/sh\n#\n" > $_script
echo '#!/bin/sh' > $_script
echo '#' >> $_script
echo >> $_script
chmod +x $_script
return 0;
@ -230,7 +233,9 @@ generate_per_ip_routing()
run_release_script_once $release_script
echo -e "#!/bin/sh\n#\n" > $setup_script
echo '#!/bin/sh' > $setup_script
echo '#' >> $setup_script
echo >> $setup_script
chmod +x $setup_script
return 0;