mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Do not allow automatic update in case YaCy is installed to the Program
Files folder on Windows. There are no permissions to write that folder and update would fail.
This commit is contained in:
parent
338cf0d133
commit
bb6caa346c
|
@ -118,6 +118,8 @@
|
||||||
<p>manual update:<br/>apt-get update && apt-get install yacy</p>
|
<p>manual update:<br/>apt-get update && apt-get install yacy</p>
|
||||||
<p>automatic update: add the following line to /etc/crontab<br/>0 6 * * * root apt-get update && apt-get -y --force-yes install yacy</p>
|
<p>automatic update: add the following line to /etc/crontab<br/>0 6 * * * root apt-get update && apt-get -y --force-yes install yacy</p>
|
||||||
::
|
::
|
||||||
|
<p>YaCy has been installed to the Program Files directory. Automatic update is not possible.<br/>Download and install the latest version from the web page <a href="http://www.yacy.net/">http://www.yacy.net/</a></p>
|
||||||
|
::
|
||||||
#(/candeploy)#
|
#(/candeploy)#
|
||||||
|
|
||||||
#%env/templates/footer.template%#
|
#%env/templates/footer.template%#
|
||||||
|
|
|
@ -55,6 +55,9 @@ public class ConfigUpdate_p {
|
||||||
if (yacyBuildProperties.isPkgManager()) {
|
if (yacyBuildProperties.isPkgManager()) {
|
||||||
prop.put("candeploy", "2");
|
prop.put("candeploy", "2");
|
||||||
return prop;
|
return prop;
|
||||||
|
} else if (OS.isWindows && sb.appPath.toString().indexOf("Program Files") > -1) {
|
||||||
|
prop.put("candeploy", "3");
|
||||||
|
return prop;
|
||||||
} else if (OS.canExecUnix || OS.isWindows) {
|
} else if (OS.canExecUnix || OS.isWindows) {
|
||||||
// we can deploy a new system with (i.e.)
|
// we can deploy a new system with (i.e.)
|
||||||
// cd DATA/RELEASE;tar xfz $1;cp -Rf yacy/* ../../;rm -Rf yacy
|
// cd DATA/RELEASE;tar xfz $1;cp -Rf yacy/* ../../;rm -Rf yacy
|
||||||
|
|
Loading…
Reference in New Issue
Block a user