-
Notifications
You must be signed in to change notification settings - Fork 31
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
/usr/local/bin/servicectl: 16: [: -ne: unexpected operator #4
Comments
This project is either dormant or abandoned. |
These scripts assume /bin/sh is bash. Just replace the shebang with your path to bash and it will work. |
I also had this issue, but it gets worse. After fixing the shebangs the scripts don't work on Debian Stretch in Linux Deploy on Android. |
I agree that this project seems to be dormant/abandoned, but I'm not wanting docker stuff. |
I got this particular line to work by changing two lines in /usr/local/bin/servicectl but there are still other issues that I haven't been able to figure out. In case anyone's curious: line 0: based on: https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script I'm running ubuntu 18.04 bionic in a chroot |
root@localhost:~# servicectl restart sshd ↑ ? |
It works for me by changing line 7: |
Hi, what's environment you are using? @Xie-Long-0 I run this in docker container. I noticed it called |
@ruquanzhao |
@Xie-Long-0 I run in chroot, which created by Linux Deploy on Android. Seems like its pids are inherited from the host.
|
this problem was fixed but... |
trying this to start crate from within linux deploy on android debian jessie gets me:
android@localhost:
$ sudo servicectl enable crate$/usr/local/bin/servicectl: 16: [: -ne: unexpected operator
/usr/local/bin/servicectl: 23: /usr/local/bin/servicectl: Syntax error: "(" unexpected
android@localhost:
The text was updated successfully, but these errors were encountered: