porting rhs/centos script to gluster/debian