Create and install rsakeys.ini

Use install-data-hook to ensure restrictive permissions on rsakeys.ini.

Don't create rsakeys.ini in init scripts. This makes xrdp functional upon
"make install" without relying on the init scripts.

Packagers should not package rsakeys.ini, it should be created when the
package is installed.
This commit is contained in:
Pavel Roskin
2016-02-19 23:38:49 -08:00
parent 22e6f3e2f7
commit b63575cebc
3 changed files with 9 additions and 17 deletions
-4
View File
@@ -61,10 +61,6 @@ xrdp_cmd() {
if [ "${rc_arg}" = "stop" ] ; then
xrdp_daemons=$(reverse_list ${xrdp_daemons})
fi
# Generate rsakeys.ini on start
if [ "${rc_arg}" = "start" -a ! -f %%PREFIX%%/etc/xrdp/rsakeys.ini ] ; then
%%PREFIX%%/bin/xrdp-keygen xrdp %%PREFIX%%/etc/xrdp/rsakeys.ini
fi
# Apply to all the daemons.
for name in ${xrdp_daemons}; do