]> git.sur5r.net Git - bacula/bacula/commitdiff
Add post install rpm script to add user to group bacula.
authorScott Barninger <scott@barninger.com>
Sun, 7 May 2006 15:40:18 +0000 (15:40 +0000)
committerScott Barninger <scott@barninger.com>
Sun, 7 May 2006 15:40:18 +0000 (15:40 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3017 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bacula-gui.spec.in
gui/bimagemgr/ChangeLog
gui/bimagemgr/README
gui/bimagemgr/ReleaseNotes

index 73879ad0a034b0b4320ca64a11077db3f53fdbe1..e521f7d0554d587ba83eaa3dabdfc21edeb6c5c4 100644 (file)
@@ -41,6 +41,8 @@ exit 1
 %define datagroup www
 %endif
 
+%define groupmod /usr/sbin/groupmod
+
 Summary: Bacula - The Network Backup Solution
 Name: bacula-gui
 Version: @VERSION@
@@ -203,11 +205,21 @@ $config(noreplace) %{cgidir}/config.pm
 %{docdir}/%{web}/templates
 %{docdir}/%{web}/templates_c
 
+%post bimagemgr
+
+# add the web server user to group bacula
+%{groupmod} -A %{dataowner} bacula
+
+%postun bimagemgr
+# remove the web server user to group bacula
+%{groupmod} -R %{dataowner} bacula
+
 %changelog
 * Sun May 07 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
 - refine files section for web
 - add documentation
 - add config.pm for bimagemgr
+- add post script bimagemgr to add web server user to group bacula
 * Sat May 06 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
 - was bimagemgr spec convert to bacula-gui spec. include bacula-web
 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
index 3f54b7f335da09347f7bf68605d8a9fc295df933..2e988681fec1efa5bdeb35d6b5f9bb1236183839 100644 (file)
@@ -32,4 +32,5 @@
  separate ChangeLog from program
  separate program configuration into config.pm
  add COPYING file
+ add post install script to rpm to add web server user to group bacula
 
index faedd0f56c264fa6ca7b52a6e063897c79c2da2b..6c8c19dba056964bb235e99b890fcaf608dbaed8 100644 (file)
@@ -1,5 +1,5 @@
 bimagemgr.pl
-06 May 2006
+07 May 2006
 
 This is a utility to monitor and burn file backups to CDR. It is a web
 based interface written in perl. It requires perl and an apache or other
@@ -14,7 +14,7 @@ network if you are willing to relax permissions on the backup Volume files
 Installation:
 
 1. Examine the Makefile and adjust it to your configuration if needed.
-2. Edit the configuration section of bimagemgr.pl to fit your configuration.
+2. Edit config.pm to fit your configuration.
 3. Do 'make install' as root.
 4. Edit httpd.conf and change the Timeout value. The web server must not time
 out and close the connection before the burn process is finished. The exact
@@ -62,6 +62,10 @@ For bacula-1.36 or bacula-1.38 installed from rpm -
 For SuSE systems add the user wwwrun to the bacula group.
 2. Check/change ownership of all of your Volume files to root.bacula
 
+bimagemgr installed from rpm > 1.38.9 will add the web server user to the 
+bacula group in a post install script. Be sure to edit the configuration 
+information in config.pm after installation of rpm package.
+
 bimagemgr will now be able to read the Volume files but they are still not 
 world readable.
 
index 764304ccc6a5252382efccf140b7c32892199646..5249aea088f1b04e180dad44565075dad309d839 100644 (file)
@@ -7,4 +7,7 @@ Configuration information has been separated out of bimagemgr.pl into a new
 file config.pm. This file will not be overwritten by the installer when 
 upgrading in the future. If you are upgrading from earlier releases you will 
 need to transfer your configuration information out of bimagemgr.pl into the 
-new config.pm
+new config.pm file.
+
+A post install script in the rpm package will add the web server user to the 
+group bacula.