diff options
Diffstat (limited to 'extras/hook-scripts/S30samba-stop.sh')
| -rwxr-xr-x | extras/hook-scripts/S30samba-stop.sh | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/extras/hook-scripts/S30samba-stop.sh b/extras/hook-scripts/S30samba-stop.sh index f7150c10e50..8950eea436e 100755 --- a/extras/hook-scripts/S30samba-stop.sh +++ b/extras/hook-scripts/S30samba-stop.sh @@ -52,14 +52,12 @@ function find_config_info () {  function del_samba_share () {          volname=$1 -        cp ${CONFIGFILE} /tmp/smb.conf -        sed -i "/gluster-$volname/,/^$/d" /tmp/smb.conf &&\ -                cp /tmp/smb.conf ${CONFIGFILE} +        sed -i "/\[gluster-$volname\]/,/^$/d" ${CONFIGFILE}  }  function sighup_samba () {          pid=`cat ${PIDDIR}/smbd.pid` -        if [ $pid != "" ] +        if [ "x$pid" != "x" ]          then                  kill -HUP $pid;          else  | 
