summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Wareing <rwareing@fb.com>2013-10-17 17:37:25 -0700
committerKevin Vigor <kvigor@fb.com>2017-02-16 12:49:55 -0500
commit59c0315ae35c339e3b36bb7e38da5c0753ab977a (patch)
tree5d3692ea369e407926abfc531f763ebc569f8afe
parentc48979df061b8ad053ff56ab2a06b7603be99a05 (diff)
Generate UUID on installation
Summary: - Generates UUID on installation to restore AntFarm flow to same as v3.3.1 - Fixed broken glusterfsd init script install (it doesn't actually exist as far as I can tell) Test Plan: Tested on dev1148.prn2 Reviewers: cjh, jackl Change-Id: I2f382c03f5fab2be01695cb020209939d4f74a9b Signed-off-by: Kevin Vigor <kvigor@fb.com> Reviewed-on: https://review.gluster.org/16648 CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Shreyas Siravara <sshreyas@fb.com> Smoke: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r--glusterfs.spec.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 29d07c530c0..27903e4d5aa 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -818,6 +818,12 @@ fi
%firewalld_reload
%endif
+%if ( 0%{?_with_fbextras:1} )
+if ! [ -f %{_sharedstatedir}/glusterd/glusterd.info ]; then
+ echo "UUID=$(/usr/bin/uuidgen)" >> %{_sharedstatedir}/glusterd/glusterd.info
+fi
+%endif
+
pidof -c -o %PPID -x glusterd &> /dev/null
if [ $? -eq 0 ]; then
kill -9 `pgrep -f gsyncd.py` &> /dev/null