Project

General

Profile

Revision 7480

Quick fix for bad handling of non-default data/backup directories.

View differences:

src/edu/ucsb/nceas/metacat/properties/PropertyService.java
152 152
	}
153 153

  
154 154
	public void doRefresh() throws ServiceException {
155
		// initialize();
155
	    initialize();
156 156
	}
157 157

  
158 158
	public void stop() throws ServiceException {
src/edu/ucsb/nceas/metacat/properties/ConfigurableProperties.java
157 157
			if (backupPath == null || backupPath.equals("")) {
158 158
				backupPath = SystemUtil.getStoredBackupDir();
159 159
			}
160
			if (backupPath == null || backupPath.equals("") && recommendedExternalDir != null) {
160
			if ((backupPath == null || backupPath.equals("")) && recommendedExternalDir != null) {
161 161
				backupPath = 
162 162
					recommendedExternalDir + FileUtil.getFS() + "." + ServiceService.getRealApplicationContext();
163 163
			}

Also available in: Unified diff