X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/9b07fa11993fd2cb0ba7ccc08f5c38eedb906413..556b6fb987e04d7898c5520298c4e1f07b234434:/server-scripts/update?ds=sidebyside diff --git a/server-scripts/update b/server-scripts/update index 0e8234c..183f2db 100755 --- a/server-scripts/update +++ b/server-scripts/update @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # Copyright (c) 2014, Ralf Jung # All rights reserved. # @@ -21,10 +21,6 @@ # 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", + out = "good" if ip is not None: - print ip, + out += " "+ip if ipv6 is not None: - print ipv6, - print + out += " "+ipv6 + print out