-
The script is missing a bash shebang, since it does not work with dash, etc.
So it should start with:
#!/bin/bash
Edited by Phobos
Please register or sign in to comment
In line 68 you remove everything after the first "." AFAICS.
That is a problem if you give an IP address to the script.
The script will then take for example "192" as the node name if you give it a private ip address.
It works fine when given a DNS name though.
Hey, thanks for the feedback. You're right, will update the snippet ;)