Skip to content

Commit

Permalink
move postinst to xpra.postinst is the ticket, apparently (thanks to r…
Browse files Browse the repository at this point in the history
…udi_s)

git-svn-id: https://xpra.org/svn/Xpra/trunk@17613 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 13, 2017
1 parent 9f3908a commit 92e7437
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
21 changes: 0 additions & 21 deletions debian/postinst

This file was deleted.

9 changes: 9 additions & 0 deletions debian/xpra.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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#

0 comments on commit 92e7437

Please sign in to comment.