Projects tigase _server server-core Issues #1136
upgrade-schema --help not available (#1136)
wojciech.kapcia@tigase.net opened 5 years ago
$ ./scripts/tigase.sh
No params-file.conf given. Using: ''

Usage: ./scripts/tigase.sh {start|stop|run|clear|clearrestart|restart|check|status|install-schema|upgrade-schema|upgrade-config} [params-file.conf] [parameters]

	For upgrade-schema task please add --help as a parameter a for list of parameters supported by this task.

Yet instead of printing help upgrade schema process is started:

wojtek@atlantiscity.local ~/dev/tmps/tigase-server-dists/tigase-issue #8.1.0-SNAPSHOT-b10537 $ ./scripts/tigase.sh upgrade-schema --help
Apr 07, 2020 11:59:28 AM tigase.db.util.SchemaManager loadSchemas
INFO: beginning loading schema files...
Apr 07, 2020 11:59:28 AM tigase.kernel.beans.config.AbstractBeanConfigurator registerBeans
WARNING: unknown class null for bean http, skipping registration of a bean
Apr 07, 2020 11:59:28 AM tigase.kernel.beans.config.AbstractBeanConfigurator registerBeans
WARNING: unknown class null for bean logging, skipping registration of a bean
Apr 07, 2020 11:59:29 AM tigase.util.dns.DNSResolverDefault <init>
WARNING: Resolving default host name: localhost took: 12
Apr 07, 2020 11:59:29 AM tigase.kernel.beans.config.AbstractBeanConfigurator registerBeans
WARNING: unknown class null for bean sasl-external, skipping registration of a bean

Database root account username used to create tigase user and database at localhost :
wojciech.kapcia@tigase.net commented 5 years ago

Fixed by changing size of parameters array that's being passed from bash to SchemaManager so that --help would be picked up correctly even if tigase.conf was not present in the list

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.1.0
Spent time
30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1136
Please wait...
Page is in error, reload to recover