Commit Graph

77 Commits

Author SHA1 Message Date
Michael Peter Christen
01cc32217f fixed apicall call method parameters
and verification in transaction manager
which did not have and exception for localhost/basic authentication
2020-12-22 00:46:47 +01:00
Michael Peter Christen
e54ab39958 Going back to basic authentication for console/shell commands
This does not affect security because:
- it is going to localhost only
- only users who have already access to the pw hash can do this
- no clear text pw is transmitted because that is not stored anywhere
The switch to basic is required because these commands are required
in the context of hosting on root servers and docker containers
where a password change must be done. But the password shell command
was not working without password which made the concept unusable.
This deficit made it virtually impossible for root server operators
to use YaCy because they had been unable to set up a proper password.
2020-12-09 02:36:55 +01:00
luccioman
7c7b38cb5a Updated the down.sh script, fixing the same kind of issue as in PR #260 2018-12-10 18:23:46 +01:00
luccioman
b3d8407462 Updated up.sh to support passing the target peer address as a parameter 2018-12-10 17:53:12 +01:00
luccioman
1b3cb3820e Fixed broken searchall shell scripts 2018-12-10 17:51:15 +01:00
luccioman
8be829ca6b
Merge pull request #261 from agnelvishal/patch-3
Update searchall1.sh

This should have been done ealrier after removal of up1.sh script in commit 3d9ce9cd04.
2018-12-08 15:49:55 +01:00
Agnel Vishal
82cd681b2d
Update searchall1.sh
The up1.sh does not exist. up.sh does the work
2018-12-06 16:09:10 +05:30
Agnel Vishal
15f76367f4
Update up.sh
IP addresses are not selected if "&ip=" is present
2018-12-06 16:07:38 +05:30
luccioman
3b383bff63 Removed shell temporary debug echo message 2018-12-01 10:55:15 +01:00
luccioman
3061b58c8c Let setting admin password with script when YaCy server is not running
Still using the ConfigAccounts_p API when the server is running.
2018-11-28 21:44:49 +01:00
luccioman
ede5cc0a2b Improvements to passwd.sh script
- Use the configured administrator user name instead of always
defaulting to "admin"
 - Do not echo the password in clear text
 - Check the password minimum size as will be applied in
ConfigAccounts_p
 - Let user type a password when not provided as a parameter
2018-11-27 11:41:00 +01:00
luccioman
106bfd0e5f Also check yacy.conf file existence in shell scripts where relevant 2018-11-27 11:36:40 +01:00
luccioman
17ad1f7e65 Added support for custom DATA path in shell scripts
When the YACY_DATA_PATH environment variable is set, shell scripts will
now use the given path instead of relative ../DATA which remains the
default when the variable is not set.

Necessary in the context of Snap package (see issue #254) as YaCy is
started with startYACY.sh and an absolute DATA parent path in parameter.
2018-11-26 18:26:52 +01:00
luccioman
f66438442e Extended Mediawiki dump import to remote URLs.
When using a public HTTP URL in /IndexImportMediawiki_p.html, the remote
file now is directly streamed and processed, allowing import of several
GB dumps even with a low memory remote peer, and without need to
manually download the dump file first.
2017-04-14 14:32:44 +02:00
luccioman
cde237b687 Enforced access controls on some administrative actions.
- ensure use of HTTP POST method : HTTP GET should only be used for
information retrieval and not to perform server side effect operations
(see HTTP standard https://tools.ietf.org/html/rfc7231#section-4.2.1)
 - a transaction token is now required for these administrative form
submissions to ensure the request can not be included in an external
site and performed silently/by mistake by the user browser
2017-03-26 11:48:00 +02:00
luccioman
40403942db Updated dump/restore shell scripts : the API is now IndexExport_p.html 2017-03-26 10:59:04 +02:00
luccioman
29e5110627 Updated shell scripts to be compatible with HTTP Digest authentication
Because curl and wget do not let use a hashed password as parameter,
YaCy shell scripts which require authentication are now interactive by
default when HTTP Digest is the only available authentication method.
Batch mode can still be available trough the use of an environment
variable : YACY_ADMIN_PASSWORD.  

Other improvements :
 - added backward compatibility for Basic Authentication
 - fixed curl/wget presence detection 
 - do not return with exit code 0 when an API call failed, and print an
error message when the case occurs
 - documented available authentication options for API calls
2017-03-21 17:15:01 +01:00
Marc Nause
53e4ae65d0 Changes to improve compatibility with OpenBSD. (see
http://forum.yacy-websuche.de/viewtopic.php?f=8&t=5503)
2015-02-23 22:54:49 +01:00
Michael Peter Christen
d1604258c1 added a script which retrieves the public ip of the local peer and
prints it out to the terminal using the new servlet /yacy/seedlist.xml.
just call:
bin/myip.sh
2014-09-13 11:09:35 +02:00
Marc Nause
8d1b66accc Fix for http://mantis.tokeek.de/view.php?id=432
*) replaced all shebangs with more universal versions
2014-08-25 22:47:33 +02:00
Michael Peter Christen
68417a05c5 different algorithm to test checkalive as it depends less on the
existence of wget (or curl) on the OS.
2014-04-06 01:20:03 +02:00
Michael Peter Christen
ca3411d805 added checkindex, solr index check 2014-01-10 12:27:49 +01:00
Michael Peter Christen
bfaf42b0b8 added a script which can check the solr index for inconsistencies while
the peer is down. This shall be used in emergency cases where a check or
fix for a broken solr index is needed.
2014-01-07 21:58:55 +01:00
Michael Peter Christen
644573cfc4 using the adminAccountUserName from yacy.conf within apicall.sh 2014-01-07 21:52:19 +01:00
Michael Peter Christen
c951945666 modified log-in detail to enable admin-login from localhost with stored
hash even if localhost access is disabled. This is urgently needed for
the apicall.sh script since that is used for high-availability set-up
(checkalive and indexdump for index mirroring)
2014-01-05 11:50:23 +01:00
Michael Peter Christen
3d9ce9cd04 - added more selection criteria for network seed list
- enhanced up script
2013-03-10 02:26:24 +01:00
Michael Peter Christen
a6ad1d6fd1 update to search tests (use yacy interface and a bugfix) 2012-12-27 03:15:50 +01:00
orbiter
f86d469973 more search command tools 2012-12-10 21:01:14 +01:00
orbiter
1228a5798d you can now search for '*' to get just ALL entries in the search index
as result list. This makes sense if you intend to search just by using
the navigation tools to cut the data set into navigation 'slices'.
2012-12-10 20:55:11 +01:00
Michael Peter Christen
68c7ed5ce9 added a shell script which can be used to delete the api action steering
table. This may be necessary if the api is called by remote command and
the recordings are not used. Then they can be deleted frequently by
calling this clear command using a cron job
2012-10-17 00:44:16 +02:00
Michael Peter Christen
ed803708ab added a shell script which can be used to add a rss feed to the index.
All pages linked in the rss feed are added. The process is not repeated
automatically. If you want to repeat this, add the command to a cron
job.
2012-10-17 00:31:59 +02:00
Michael Peter Christen
f3fc8eac80 fixed clear scripts 2012-10-11 10:16:37 +02:00
Michael Peter Christen
640339ee21 added the indexrestore.sh script which must be called with the path of
the index dump. This is the reverse of indexdump.sh which takes the
output of indexdump.sh as input to restore an index.
Now it should be possible to transfer a complete YaCy Solr index from
one peer yacy1 to another peer yacy2 with the following command:
yacy2/bin/indexrestore.sh ´yacy1/bin/indexdump.sh´
2012-09-25 00:28:20 +02:00
Michael Peter Christen
15ea053c3a - added xml output in IndexControlURLs to get the storage page of index
dump commands
- adjusted the apicall.sh script to get the downloaded text as output to
stdout which is necessary to parse the content out of it
- added indexdump.sh script which creates a solr dump and prints out the
storage path for the index dump
- added synchronization to the Fulltext class to prevent that data is
stored to a non-existing solr index while this index is disabled during
the storage of the dump
2012-09-25 00:19:52 +02:00
Roland 'Quix0r' Haeder
aef9dd0350 - removed cleaning of blacklist cache on startup
- added cleaning of blacklist cache if cache is modified in interface
- extended cache saving to all cache types
- moved cache location to DATA/LISTS
- fixed static file path which was relative to the application path but
should be relative to data path - which is different in debian and mac
implementations
2012-07-10 13:08:16 +02:00
Michael Peter Christen
cc1b6762bb root, not yacy 2012-06-24 10:58:09 +02:00
Michael Peter Christen
2589158f44 changed recommended line in /etc/crontab for high-availability 2012-06-24 10:57:18 +02:00
Michael Peter Christen
2823e33531 fixes for wrong port number in shell scripts 2012-05-29 13:08:27 +02:00
Michael Peter Christen
8b974905ee changed log-in text for all servlets with authentication:
- added hint how to set the password using a shell script
- added a shell script to change the password
2012-05-24 13:24:31 +02:00
Michael Peter Christen
6c4f8fdc44 removed superfluous files 2012-04-30 11:09:54 +02:00
Lotus
e14eb9de82 checkalive.sh: try to fetch only once (default: 20) 2012-03-12 09:30:44 +01:00
Michael Peter Christen
5e18f54a8c added shell script to get a servlet. this is the same as apicall.sh but it prints the result to stdout 2012-01-31 23:21:49 +01:00
Michael Christen
7a5ff9b808 added checkalive script that can be called frequently to restart crashed
peers automatically
2012-01-02 02:09:49 +01:00
orbiter
3ac6fb0baf added dump check script
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7978 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-09-28 21:18:49 +00:00
orbiter
fabda9ad31 added script that can be used to delete a single url from the index
call:
bin/deleteurl.sh <url>


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7969 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-09-21 23:33:44 +00:00
orbiter
2e8c8ebf54 fix for clear commands
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7939 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-09-08 12:54:10 +00:00
low012
24e76a7b69 *) Replaced occurrences of "Wikimedia" with "MediaWiki" where applicable. (Thanks to the folks of 0x20.be for pointing this out.)
*) Added description of where to place MediaWiki dump for import.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7905 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-08-28 00:16:36 +00:00
orbiter
d0d6123b18 added a deploy script that can be used to deploy yacy releases into the current release for testing
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7768 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-06-01 19:52:05 +00:00
orbiter
265b7ce4f9 removed pause in search test
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7767 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-06-01 19:49:44 +00:00
orbiter
752576b521 - localsearch test script does also a snippet-fetch
- killYACY.sh does not need a sleep between kill -3 and kill -9

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7750 6c8d7289-2bf4-0310-a012-ef5d649a1542
2011-05-27 12:08:45 +00:00