Make changes to install observer initscript in the right place
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 5 Aug 2014 03:49:52 +0000 (23:49 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 5 Aug 2014 03:49:52 +0000 (23:49 -0400)
opencloud.spec

index 3ec5a17..5b6bed4 100644 (file)
@@ -70,6 +70,7 @@ fi
 rm -rf %{buildroot}
 mkdir -p  %{buildroot}
 install -d %{buildroot}/opt/planetstack
+install -d %{buildroot}/etc/init.d
 
 # in builddir
 cp -rp ./planetstack %{buildroot}/opt/.
@@ -77,6 +78,7 @@ cp observer-initscript %{buildroot}/etc/init.d/plstackobserver
 
 find %{buildroot}/opt/planetstack -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" > %{_tmppath}/tmp-filelist
 cp %{_tmppath}/tmp-filelist /tmp/tmp-filelist
+echo /etc/init.d/plstackobserver > %{_tmppath}/tmp-filelist
 
 %clean
 rm -rf %{buildroot}