mirror of https://github.com/neutrinolabs/xrdp
Merge pull request #235 from metalefty/init-scripts-on-systemd
instfiles: init.d/xrdp shouldn't be installed on systemd system
This commit is contained in:
commit
830a93d824
|
@ -4,14 +4,16 @@ xrdp.service
|
|||
|
||||
SUBDIRS = \
|
||||
pam.d \
|
||||
init.d \
|
||||
default \
|
||||
pulse
|
||||
|
||||
if HAVE_SYSTEMD
|
||||
systemdsystemunit_DATA = \
|
||||
xrdp-sesman.service \
|
||||
xrdp.service
|
||||
else
|
||||
SUBDIRS+=
|
||||
default \
|
||||
init.d
|
||||
endif
|
||||
|
||||
startscriptdir=$(sysconfdir)/xrdp
|
||||
|
@ -35,5 +37,7 @@ startscript_DATA = \
|
|||
# must be tab below
|
||||
install-data-hook:
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/init.d/xrdp
|
||||
sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp;
|
||||
if [ -f $(DESTDIR)$(sysconfdir)/init.d/xrdp ]; then \
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
|
||||
sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
|
||||
fi
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
EXTRA_DIST = xrdp
|
||||
startscriptdir=$(sysconfdir)/init.d
|
||||
startscript_DATA = xrdp
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue