fix 'good' reply
[dyn-nsupdate.git] / server-scripts / update
index 0e8234c36bbc68ae83b5dde168f0b3e3709cc550..2a7171556757cc6c6c67166f7910e27b1e1193e3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # Copyright (c) 2014, Ralf Jung <post@ralfj.de>
 # All rights reserved.
 # 
 # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# 
-# The views and conclusions contained in the software and documentation are those
-# of the authors and should not be interpreted as representing official policies, 
-# either expressed or implied, of the FreeBSD Project.
 
 import cgi, os, sys, subprocess
 form = cgi.FieldStorage(keep_blank_values=True)
@@ -61,9 +57,9 @@ if p.returncode or stderr or stdout:
     if stdout: print stdout
     if stderr: print stderr
 else:
-    print "good",
+    print "good"
     if ip is not None:
-        print ip,
+        print " "+ip
     if ipv6 is not None:
-        print ipv6,
+        print " "+ipv6
     print