* rsync the webrepository
* needs a rsyncscript
* returns the exit-code
+ * returns 255 if rsync should not be used
*/
public static int rsync(){
- Process p;
+ if(!MirConfig.getProp("Rsync").toLowerCase().equals("yes")){
+ return 255;
+ }
+
+ Process p;
int returnValue = -1;
try {
Runtime run = Runtime.getRuntime();
- p = run.exec(Configuration.getProperty("Sync.Script.Path"));
+ p = run.exec(MirConfig.getProp("Rsync.Script.Path"));
returnValue = p.waitFor();
} catch (IOException e) {
return returnValue;
}
return returnValue;
}
-}
\ No newline at end of file
+}