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 = \
|
SUBDIRS = \
|
||||||
pam.d \
|
pam.d \
|
||||||
init.d \
|
|
||||||
default \
|
|
||||||
pulse
|
pulse
|
||||||
|
|
||||||
if HAVE_SYSTEMD
|
if HAVE_SYSTEMD
|
||||||
systemdsystemunit_DATA = \
|
systemdsystemunit_DATA = \
|
||||||
xrdp-sesman.service \
|
xrdp-sesman.service \
|
||||||
xrdp.service
|
xrdp.service
|
||||||
|
else
|
||||||
|
SUBDIRS+=
|
||||||
|
default \
|
||||||
|
init.d
|
||||||
endif
|
endif
|
||||||
|
|
||||||
startscriptdir=$(sysconfdir)/xrdp
|
startscriptdir=$(sysconfdir)/xrdp
|
||||||
@ -35,5 +37,7 @@ startscript_DATA = \
|
|||||||
# must be tab below
|
# must be tab below
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh
|
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh
|
||||||
chmod 755 $(DESTDIR)$(sysconfdir)/init.d/xrdp
|
if [ -f $(DESTDIR)$(sysconfdir)/init.d/xrdp ]; then \
|
||||||
sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp;
|
chmod 755 $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
|
||||||
|
sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp; \
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user