diff --git a/debian/postinst b/debian/postinst deleted file mode 100755 index f58aaa7ed1..0000000000 --- a/debian/postinst +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -e - -#DEBHELPER# - -SERVER_GROUP="xpra" -if ! getent group $SERVER_GROUP >/dev/null; then - echo -n "Adding group $SERVER_GROUP.." - addgroup --quiet --system $SERVER_GROUP 2>/dev/null ||true - echo "..done" -fi - -if [ ! -f /etc/xpra/ssl-cert.pem ]; then - umask=`umask` - umask 077 - openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \ - -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" \ - -keyout "/etc/xpra/ssl-cert.pem" -out "/etc/xpra/ssl-cert.pem" - umask $umask -fi diff --git a/debian/xpra.postinst b/debian/xpra.postinst index 6d9516f803..a86c5e563b 100644 --- a/debian/xpra.postinst +++ b/debian/xpra.postinst @@ -10,4 +10,13 @@ case "${1}" in ;; esac +if [ ! -f /etc/xpra/ssl-cert.pem ]; then + umask=`umask` + umask 077 + openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \ + -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" \ + -keyout "/etc/xpra/ssl-cert.pem" -out "/etc/xpra/ssl-cert.pem" + umask $umask +fi + #DEBHELPER#