(file) Return to tog-pegasus-pre.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm / tog-specfiles

Diff for /pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec between version 1.1 and 1.8

version 1.1, 2005/03/22 08:57:42 version 1.8, 2007/10/01 20:47:32
Line 1 
Line 1 
 if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]  # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
 then  #           install   remove   upgrade  reinstall
   # pre          1        -         2         2
   #
   # If it exists, the active OpenPegasus Repository
   #    directory, %PEGASUS_REPOSITORY_DIR is renamed
   #    to %PEGASUS_PREV_REPOSITORY_DIR.  If
   #    %PEGASUS_PREV_REPOSITORY_DIR already exists,
   #    it is saved as an archive file.
   
   if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
   #   #
   # Save the current repository to prev_repository   # Save the current repository to prev_repository
   #   #
   if [[ -d %PEGASUS_REPOSITORY_DIR ]]     if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
   then          /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
     if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]]              %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
     then              %PEGASUS_PREV_REPOSITORY_DIR_NAME
       rm -rf %PEGASUS_PREV_REPOSITORY_DIR       rm -rf %PEGASUS_PREV_REPOSITORY_DIR
     fi     fi
     mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR     /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
     mkdir %PEGASUS_REPOSITORY_DIR  fi
   if [ $1 -gt 0 ]; then
      #  Create the 'pegasus' user and group:
      /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
      /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \
           -g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR pegasus \
            > /dev/null 2>&1 || :;
   fi   fi
   if [ $1 -eq 2 ]; then
       rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH;
       rm -f %PEGASUS_CIMSERVER_START_FILE;
       rm -f %PEGASUS_CIMSERVER_START_LOCK_FILE;
 fi fi
   #
   # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.8

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2