Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix string in shell.init.script #612

Merged
merged 3 commits into from Dec 15, 2017
Merged

fix string in shell.init.script #612

merged 3 commits into from Dec 15, 2017

Conversation

sjsf
Copy link
Contributor

@sjsf sjsf commented Dec 15, 2017

I really have no idea what I'm doing and how it is intended to be like, but counting the (unescaped) quotation marks I think karaf is completely right to complain about some string indices etc...

fixes #570
fixes openhab/openhab-docker#128
Signed-off-by: Simon Kaufmann simon.kfm@googlemail.com

fixes openhab#570
fixes openhab/openhab-docker#128
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
@kaikreuzer
Copy link
Member

What do you mean by it fixes #570?
Note that the content of that file came directly from Karaf - so unless you also submit a fix there, we will see a regression after the next Karaf upgrade (which isn't far). Unfortunately, I didn't find that file anywhere in their repo, not sure where it comes from...

@martinvw
Copy link
Member

Does this literally come from karaf? As far as I remember it does, see https://github.com/apache/karaf/blob/master/assemblies/features/base/src/main/resources/resources/etc/shell.init.script

Should we create an upstream issue / pr and does it work better now? Does it also occur on a independant karaf?

@kaikreuzer
Copy link
Member

I've just checked: The latest Karaf 4.2.0.M1 still contains the very same string... (/cc @splatch)

@kaikreuzer
Copy link
Member

Ok, @martinvw was quicker :-)

@kaikreuzer
Copy link
Member

@SJKA I am not sure that I like that change. Doing it on my installation results in:

Launching the openHAB runtime...

                          __  _____    ____      
  ____  ____  ___  ____  / / / /   |  / __ )     
 / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  | 
/ /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ /      
\____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/     
    /_/                        2.2.0-SNAPSHOT
                               Build #1139   

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown openHAB.

Error in initialization script: /Users/kai/Downloads/oh/userdata/etc/shell.init.script: null

@sjsf
Copy link
Contributor Author

sjsf commented Dec 15, 2017

Didn't I mention that I have no idea what I'm doing here...?

You don't need to like this change. If you know how to fix it please to so. In any case, this stupid like makes the docker instances go nuts. How about deleting these lines completely as the important ones down below are commented out anyway?

@kaikreuzer
Copy link
Member

That indeed works better for me.

Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
Signed-off-by: Simon Kaufmann <simon.kfm@googlemail.com>
@sjsf
Copy link
Contributor Author

sjsf commented Dec 15, 2017

I removed the entire block, as it's useless anyway.

@kaikreuzer
Copy link
Member

Thanks! Please also file an issue upstream, so that it won't come back in future versions.

@kaikreuzer kaikreuzer merged commit 7c203c1 into openhab:master Dec 15, 2017
@sjsf sjsf deleted the fixString branch December 15, 2017 16:14
@martinvw
Copy link
Member

martinvw commented Dec 15, 2017

FTR: it was introduced in karaf in this commit

apache/karaf@f1dd4a9

@wborn wborn added this to the 2.2 milestone Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.2.0-snapshot fails to start
4 participants