summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-08-31 17:16:34 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-08-31 17:16:34 +0530
commitf4246a48ed0deacdd377e5f0c34e8671f14222f6 (patch)
tree686d3db89dadbadb7a8c22a425dbf287ff4d66ed /build
parentd2277e6c4391f38f6373872df1a2911d86aa587d (diff)
Modified to run all commands as sudo
Diffstat (limited to 'build')
-rwxr-xr-xbuild/create-rpms.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/build/create-rpms.sh b/build/create-rpms.sh
index 21bfa531..f74902d3 100755
--- a/build/create-rpms.sh
+++ b/build/create-rpms.sh
@@ -1,6 +1,6 @@
-cp glustermg-${VERSION}.tar.gz /usr/src/redhat/SOURCES
-rpmbuild --define "release_version ${VERSION}" -bb build/glustermg.spec
-rm -rf rpms
-mkdir rpms
-mv /usr/src/redhat/RPMS/x86_64/glustermg*.rpm rpms
-chown -R jenkins:jenkins rpms
+sudo cp glustermg-${VERSION}.tar.gz /usr/src/redhat/SOURCES
+sudo rpmbuild --define "release_version ${VERSION}" -bb build/glustermg.spec
+sudo rm -rf rpms
+sudo mkdir rpms
+sudo mv /usr/src/redhat/RPMS/x86_64/glustermg*.rpm rpms
+sudo chown -R jenkins:jenkins rpms