OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   09-May-2008 10:31:29
  Branch: HEAD                             Handle: 2008050909312700

  Modified files:
    openpkg-src/drupal      drupal-setup.sh

  Log:
    apply a hack to make sure that 'restore' doesn't activate the Drupal
    installer

  Summary:
    Revision    Changes     Path
    1.16        +8  -2      openpkg-src/drupal/drupal-setup.sh
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/drupal/drupal-setup.sh
  ============================================================================
  $ cvs diff -u -r1.15 -r1.16 drupal-setup.sh
  --- openpkg-src/drupal/drupal-setup.sh        9 May 2008 07:22:20 -0000       
1.15
  +++ openpkg-src/drupal/drupal-setup.sh        9 May 2008 08:31:27 -0000       
1.16
  @@ -63,7 +63,9 @@
   
           #   activate configuration directory 
           #   (is automatically deactivated by installer afterwards)
  -        chmod 777 @l_prefix@/share/drupal/sites/default
  +        if [ ".$DRUPAL_SETUP_RESTORE" = . ]; then
  +            chmod 777 @l_prefix@/share/drupal/sites/default
  +        fi
           ;;
       uninstall )
           #   remove the database
  @@ -78,7 +80,9 @@
           fi
   
           #   remove the generated configuration
  -        rm -f @l_prefix@/share/drupal/sites/default/settings.php
  +        if [ ".$DRUPAL_SETUP_RESTORE" = . ]; then
  +            rm -f @l_prefix@/share/drupal/sites/default/settings.php
  +        fi
           ;;
       backup )
           #   backup the database
  @@ -117,6 +121,8 @@
               echo "drupal-setup:restore:ERROR: no such dump file: $dumpfile" 
1>&2
               exit 1
           fi
  +        DRUPAL_SETUP_RESTORE=1
  +        export DRUPAL_SETUP_RESTORE
           $prg uninstall || exit $?
           $prg install   || exit $?
           if [ ".$db_type" = .mysql ]; then
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to