csf-post-docker icon indicating copy to clipboard operation
csf-post-docker copied to clipboard

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

Open mahgblack opened this issue 8 years ago • 4 comments

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 avatar Sep 27 '16 17:09 mahgblack

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 avatar Sep 28 '16 15:09 mahgblack

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

ghost avatar Oct 26 '16 03:10 ghost

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

JoyceBabu avatar Oct 08 '19 21:10 JoyceBabu

you are right!

ghost avatar Oct 08 '19 21:10 ghost