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:
@@ -13,3 +13,12 @@ xrdp_keygen_SOURCES = keygen.c
|
||||
|
||||
xrdp_keygen_LDADD = \
|
||||
$(top_builddir)/common/libcommon.la
|
||||
|
||||
xrdpsysconfdir = $(sysconfdir)/xrdp
|
||||
|
||||
install-data-hook:
|
||||
umask 077 && \
|
||||
./xrdp-keygen xrdp $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini
|
||||
|
||||
uninstall-hook:
|
||||
rm -f $(DESTDIR)$(xrdpsysconfdir)/rsakeys.ini
|
||||
|
||||
Reference in New Issue
Block a user