Changeset 421 for branches


Ignore:
Timestamp:
09/28/2009 21:23:38 (3 years ago)
Author:
blee
Message:

Merge from trunk an improvement to confexport to reduce the amount
of time export files are unavailable.

Fixes #68

Location:
branches/confman-1.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 420
  • branches/confman-1.9/confexport.in

    r414 r421  
    9090    exit 1 
    9191else 
    92     rm -rf ${CONF_EXPORT_FILE} 
     92    # Prepare the new export 
     93    chown -R ${CONF_EXPORT_USER}:${CONF_EXPORT_GROUP} $temp_conf_export 
     94    chmod -R ${CONF_EXPORT_MODE} $temp_conf_export 
     95    # Switch to the new export 
     96    old_conf_export=$(conf_tmp_dir) 
     97    mv ${CONF_EXPORT_FILE} $old_conf_export 
    9398    mv $temp_conf_export ${CONF_EXPORT_FILE} 
    94     chown -R ${CONF_EXPORT_USER}:${CONF_EXPORT_GROUP} ${CONF_EXPORT_FILE} 
    95     chmod -R ${CONF_EXPORT_MODE} ${CONF_EXPORT_FILE} 
     99    # Remove the old export 
     100    rm -rf $old_conf_export 
    96101fi 
    97102 
Note: See TracChangeset for help on using the changeset viewer.