| Summary: | Samba hook scripts don't get updated with rpm update. | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | surabhi <sbhaloth> |
| Component: | samba | Assignee: | Bala.FA <barumuga> |
| Status: | CLOSED ERRATA | QA Contact: | surabhi <sbhaloth> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 2.1 | CC: | amarts, dpati, lmohanty, sdharane, surs, vagarwal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.4.0.30rhs-2.el6rhs | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-23 22:32:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 956495 | ||
| Bug Blocks: | |||
|
Description
surabhi
2013-08-29 14:01:35 UTC
After discussion with Amar assigning it to Bala as it need change in glusterfs spec file. Is the below patch enough?
----
amar@supernova:~/work/rhs-glusterfs$ git diff
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 4d6ea71..867b6f5 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -972,6 +972,17 @@ if [ -d /var/lib/glusterd/vols ]; then
done
fi
+# Rename old hookscripts in an RPM-standard way. These aren't actually
+# considered package config files, so %config doesn't work for them.
+if [ -d /var/lib/glusterd/hooks ]; then
+ for file in $(find /var/lib/glusterd/hooks -type f); do
+ newfile=${file}.rpmsave
+ echo "warning: ${file} saved as ${newfile}"
+ mv ${file} ${newfile}
+ done
+fi
+
+
# Need to copy the file.
mkdir -p /var/lib/glusterd/groups
if [ ! -r /var/lib/glusterd/groups/virt ]; then
Verified on latest version: glusterfs-3.4.0.30rhs-2.el6rhs.x86_64 The samba hooks scripts are getting updated. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1262.html |