From: Evan Broder Date: Sat, 29 Mar 2008 00:42:00 +0000 (-0400) Subject: vncproxy.py needs to be run from its own directory, and evil warning message to make... X-Git-Tag: sipb-xen-vnc-server/1~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-server.git/commitdiff_plain/79553751a79892ddd3fada8e476799a6c5efe963?hp=70b6236aa037ef3fd1c34cfef3454ec092976079 vncproxy.py needs to be run from its own directory, and evil warning message to make sure the SSL certs get put in svn path=/trunk/packages/sipb-xen-vnc-server/; revision=291 --- diff --git a/debian/sipb-xen-vnc-server.init b/debian/sipb-xen-vnc-server.init index e40e259..56d8508 100644 --- a/debian/sipb-xen-vnc-server.init +++ b/debian/sipb-xen-vnc-server.init @@ -45,7 +45,7 @@ do_start() # 1 if daemon was already running # 2 if daemon could not be started daemon --running -n $NAME && return 1 - daemon -r -U -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2 + daemon -r -U -D "$(dirname $DAEMON)" -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2 } # diff --git a/debian/sipb-xen-vnc-server.postinst b/debian/sipb-xen-vnc-server.postinst new file mode 100644 index 0000000..3c5b764 --- /dev/null +++ b/debian/sipb-xen-vnc-server.postinst @@ -0,0 +1,44 @@ +#!/bin/sh +# postinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + if [ -z "$2" ]; then + echo "Please be sure to copy vncproxy.crt and vncproxykey.pem into /usr/local/lib/sipb-xen-vnc-server/" + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + +