Fix database import script location (& whitespace) #342
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Zabbix 3.0 (currently supported) and 3.2 (now unsupported) placed
import scripts at
/usr/share/doc/zabbix-server-{mysql,pgsql}-{3.0.0,3.2.0}/create.sql.gz,
while newer versions (3.4, 4.x, 5.x) have scripts at
/usr/share/doc/zabbix-server-{mysql,pgsql}/create.sql.gz.
References for currently supported versions:
3.0: https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages/server_installation_with_mysql#creating_initial_database
4.0: https://www.zabbix.com/documentation/4.0/manual/installation/install_from_packages/rhel_centos#importing_data
5.0: https://www.zabbix.com/download?zabbix=5.0&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql
5.2: https://www.zabbix.com/download?zabbix=5.2&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql
This commit should make all versions since 3.0 work (this includes all
supported versions.)
Even older (unsupported) versions had additional locations, but this
commit does not include support for those versions. For example, Zabbix
2.0 had scripts in a further subdirectory at
/usr/share/doc/zabbix-server-mysql-2.4.0/create
(https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages#creating_initial_database)
with three separate scripts; this would break assumptions made elsewhere
in this module.
ISSUE TYPE
COMPONENT NAME
zabbix_server role