X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmir%2Fmisc%2FHelper.java;h=7fce85fd1fb846cdb114ce3ecde3d56be66bab9f;hb=546961c7d44afc07790196556aaba1103b0ab4e0;hp=bbfb8426f10dd528194c7f81d04cae0432021033;hpb=5bf2a1fa11c1529a731ab6b4521b8254c1fa100f;p=mir.git diff --git a/source/mir/misc/Helper.java b/source/mir/misc/Helper.java index bbfb8426..7fce85fd 100755 --- a/source/mir/misc/Helper.java +++ b/source/mir/misc/Helper.java @@ -17,13 +17,18 @@ public class Helper { * 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; @@ -32,4 +37,4 @@ public class Helper { } return returnValue; } -} \ No newline at end of file +}