lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-9475) Add install script support for CentOS
Date Mon, 03 Oct 2016 17:03:20 GMT

    [ https://issues.apache.org/jira/browse/SOLR-9475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15542871#comment-15542871
] 

Hoss Man commented on SOLR-9475:
--------------------------------

bq. Regarding {{lsb_release -i}} it finds info from {{/etc/lsb-release}} which, at least for
common docker images, does not exist for the majority of distros. ...

sure, but that was the crux of my point about checking for each of these sources in order
to see if they match a known platform, rather then just checking to see if the commands execute
(or the files exist) and then as soon as we find one that does, _only_ check it -- because
that we could check {{lsb_release}} first, and even if it returns a valid status, but not
a platform we recognize, we would then move on and check the rest...

bq. ... And the main reason why I'm checking {{/etc/os-release}} before {{/proc/version}}
or uname -a is that in virtualized envs the latter two tend to print the docker VM's OS instead
of the container's OS. ...

that's an interesting property of docker I did not realize ... can you please add a comment
to that effect in the install script?

bq. Does this address your concerns Hoss Man?

I'd still feel better if we actually checked {{lsb_release -i}} (at least as a fall back since
it's a documented standard), but i'm a big +1 to your latest patch since it definitely seems
like a huge improvement.



> Add install script support for CentOS
> -------------------------------------
>
>                 Key: SOLR-9475
>                 URL: https://issues.apache.org/jira/browse/SOLR-9475
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.2
>         Environment: Centos 7
>            Reporter: Nitin Surana
>            Assignee: Jan Høydahl
>             Fix For: 6.3, master (7.0)
>
>         Attachments: SOLR-9475.patch, SOLR-9475_osrelease_fix.patch, install_solr_service.sh
>
>
> [root@ns521582 tmp]# sudo ./install_solr_service.sh solr-6.2.0.tgz
> id: solr: no such user
> Creating new user: solr
> adduser: group '--disabled-password' does not exist
> Extracting solr-6.2.0.tgz to /opt
> Installing symlink /opt/solr -> /opt/solr-6.2.0 ...
> Installing /etc/init.d/solr script ...
> /etc/default/solr.in.sh already exist. Skipping install ...
> /var/solr/data/solr.xml already exists. Skipping install ...
> /var/solr/log4j.properties already exists. Skipping install ...
> chown: invalid spec: ‘solr:’
> ./install_solr_service.sh: line 322: update-rc.d: command not found
> id: solr: no such user
> User solr not found! Please create the solr user before running this script.
> id: solr: no such user
> User solr not found! Please create the solr user before running this script.
> Service solr installed.
> Reference - http://stackoverflow.com/questions/39320647/unable-to-create-user-when-installing-solr-6-2-0-on-centos-7



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message