cluster: RHEL56 - resource-agents: Fix samba netbios name
Lon Hohberger
lon at fedoraproject.org
Thu Jul 29 17:49:45 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9c2ff30de99fa340feb5b86c801829ffd1638f69
Commit: 9c2ff30de99fa340feb5b86c801829ffd1638f69
Parent: 72ec71ba0a79be20edf1093d0185c67dd01970da
Author: Lon Hohberger <lhh at redhat.com>
AuthorDate: Mon Nov 9 17:12:59 2009 -0500
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Thu Jul 29 13:48:00 2010 -0400
resource-agents: Fix samba netbios name
Spaces should not be allowed in the NetBIOS name.
Resolves: rhbz#531843
Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
rgmanager/src/resources/samba.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/resources/samba.sh b/rgmanager/src/resources/samba.sh
index da9a9e6..857555c 100755
--- a/rgmanager/src/resources/samba.sh
+++ b/rgmanager/src/resources/samba.sh
@@ -92,7 +92,7 @@ generate_config_file()
echo "pid directory = \"$SAMBA_pid_dir\"" >> "$generated_file"
echo "interfaces = $ip_addresses" >> "$generated_file"
echo "bind interfaces only = Yes" >> "$generated_file"
- echo "netbios name = \"$OCF_RESKEY_name\"" >> "$generated_file"
+ echo "netbios name = ${OCF_RESKEY_name/ /_}" >> "$generated_file"
echo >> "$generated_file"
sed 's/^[[:space:]]*pid directory/### pid directory/i;s/^[[:space:]]*interfaces/### interfaces/i;s/^[[:space:]]*bind interfaces only/### bind interfaces only/i;s/^[[:space:]]*netbios name/### netbios name/i' \
< "$original_file" >> "$generated_file"
More information about the cluster-commits
mailing list