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

error with csf csf: v9.23 (generic) and docker version 1.11.2, build b9f10c9 #8

Open
mahgblack opened this issue Sep 27, 2016 · 4 comments

Comments

@mahgblack
Copy link

im getting this error, rules doesnt update, lost communications with dockers containers

/usr/local/csf/bin/csfpost.sh: 43: [: default: unexpected operator
Bad argument value>/32' Tryiptables -h' or 'iptables --help' for more information.
Bad argument value>/32' Tryiptables -h' or 'iptables --help' for more information.
iptables v1.4.21: Bad IP address "<no"

@mahgblack
Copy link
Author

mahgblack commented Sep 28, 2016

fix this line in the code if [ $netmode == "default" ]; then,, change it for if [ $netmode = "default" ]; then
in docker.sh script
that solved the problem in ubuntu.

http://unix.stackexchange.com/questions/72039/whats-the-diference-between-comparison-inside-if-using-two-or-a-single-equal

@mahgblack mahgblack reopened this Sep 28, 2016
@ghost
Copy link

ghost commented Oct 26, 2016

/bin/sh should be pointing to /bin/bash and not /bin/dash if you want the script to work properly

@JoyceBabu
Copy link

If the script requires bash, wouldn't it be better to use #!/bin/bash as shebang?

@ghost
Copy link

ghost commented Oct 8, 2019

you are right!

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

No branches or pull requests

2 participants