From 581dd2ec7252673c17b8184921b30c73b857adc2 Mon Sep 17 00:00:00 2001 From: rramthun Date: Wed, 11 Oct 2006 18:27:38 +0000 Subject: [PATCH] *)Proper arrow-function on Network.html, but ordering is still broken. Perhaps someone could fix that? *)Removed double creation of DATA directory. New warning message in case of insufficient rights. *) Removed roland-ramthun.de-seedlist temporarily, because of server changes git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2747 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Network.html | 2 +- locales/de.lng | 2 +- source/yacy.java | 10 +++++----- superseed.txt | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/htroot/Network.html b/htroot/Network.html index 5eab96963..58d0c3782 100644 --- a/htroot/Network.html +++ b/htroot/Network.html @@ -37,7 +37,7 @@ Info
  Release/
SVN

  PPM
  - Last
Seen

  < > + Last
Seen

  < > UTC
Offset
  Location

  Uptime
  < > diff --git a/locales/de.lng b/locales/de.lng index 4f0206b4b..8c6cd9cf4 100644 --- a/locales/de.lng +++ b/locales/de.lng @@ -1407,7 +1407,7 @@ Connection timeout in ms==Verbindungs-Timeout in ms means unlimited==schaltet die Begrenzung ab Crawler Settings==Crawler Einstellungen Maximum Filesize==Maximale Dateigröße -Maximum allowed file size in bytes that should be downloaded==Maximale Größe der herunterzuladenden Dateien +Maximum allowed file size in bytes that should be downloaded==Maximale Größe der herunterzuladenden Datei in Byte Larger files will be skipped==Größere Dateien werden übersprungen Please note that if the crawler uses content compression, this limit is used to check the compressed content size==Beachten Sie, dass beim Herunterladen der Dateien mittels "Content-Compression" die komprimierte Dateigröße maßgeblich ist Submit==Speichern diff --git a/source/yacy.java b/source/yacy.java index ff540e291..8a4b8e25e 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -202,9 +202,13 @@ public final class yacy { System.exit(-1); } - // ensure that there is a DATA directory + // ensure that there is a DATA directory, if not, create one and if that fails warn and die File f = new File(homePath); if (!(f.exists())) f.mkdirs(); f = new File(homePath, "DATA/"); if (!(f.exists())) f.mkdirs(); + if (!(f.exists())) { + System.err.println("Error creating DATA-directory in " + homePath.toString() + " . Please check your write-permission for this folder. YaCy will now terminate."); + System.exit(-1); + } // setting up logging f = new File(homePath, "DATA/LOG/"); if (!(f.exists())) f.mkdirs(); @@ -224,10 +228,6 @@ public final class yacy { serverLog.logConfig("STARTUP", "Time Zone: UTC" + serverDate.UTCDiffString() + "; UTC+0000 is " + System.currentTimeMillis()); serverLog.logConfig("STARTUP", "Maximum file system path length: " + serverSystem.maxPathLength); - // create data folder - final File dataFolder = new File(homePath, "DATA"); - if (!(dataFolder.exists())) dataFolder.mkdir(); - /* // Testing if the yacy archive file were unzipped correctly. // This test is needed because of classfile-names longer than 100 chars diff --git a/superseed.txt b/superseed.txt index eec1b4e05..03ad707b6 100644 --- a/superseed.txt +++ b/superseed.txt @@ -1,7 +1,6 @@ http://www.yacy.net/yacy/seed.txt http://www.suma-lab.de/yacy/seed.txt http://www.lulabad.de/seed.txt -http://www.roland-ramthun.de/seed.txt http://home.arcor.de/hermens/yacy/seed.txt http://www.blowmymind.de/yacy/seed1.txt http://borg-0300.dyndns.org:3000/share/seed.txt