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

[leofs] To be able to correctly terminate leofs-adm's commads on Ubuntu-18.04 #1035

Merged
merged 2 commits into from
Apr 24, 2018

Conversation

yosukehara
Copy link
Member

I've found leofs-adm commands cannot terminate on Ubuntu-18.04.

leofs-adm Outdated
@@ -67,6 +67,14 @@ case $OS in
SunOS)
NC_ARGS=""
;;
Linux)
## For Ubuntu-18.04
if cat /etc/issue | grep -q 'Ubuntu Bionic'; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/etc/issue can be modified by sysadmin so it would be better to use lsb_release to distinguish the distribution and its version like the following.

leofs@cat2neat$ lsb_release -is
Ubuntu
leofs@cat2neat$ lsb_release -rs
18.04
leofs@cat2neat:leo_object_storage$ lsb_release -irs
Ubuntu
18.04

@yosukehara
Copy link
Member Author

@mocchira PTAL

@mocchira mocchira merged commit a3a2b31 into leo-project:v1 Apr 24, 2018
@yosukehara yosukehara deleted the y05uk-v1-leofs-adm branch April 24, 2018 03:20
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 participants