Use SCRIPTS for executable scripts, don't use "chmod 755"
This commit is contained in:
parent
7642675ddf
commit
22e6f3e2f7
@ -36,7 +36,7 @@ if LINUX
|
||||
SUBDIRS += \
|
||||
pam.d \
|
||||
pulse
|
||||
dist_startscript_DATA += xrdp.sh
|
||||
dist_startscript_SCRIPTS = xrdp.sh
|
||||
if HAVE_SYSTEMD
|
||||
dist_systemdsystemunit_DATA = \
|
||||
xrdp-sesman.service \
|
||||
@ -61,9 +61,7 @@ endif
|
||||
if LINUX
|
||||
# must be tab below
|
||||
install-data-hook:
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/xrdp.sh
|
||||
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
|
||||
endif
|
||||
@ -71,6 +69,5 @@ endif
|
||||
if FREEBSD
|
||||
# must be tab below
|
||||
install-data-hook:
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/rc.d/xrdp
|
||||
sed -i '' 's|%%PREFIX%%|$(prefix)|g' $(DESTDIR)$(sysconfdir)/rc.d/xrdp
|
||||
endif
|
||||
|
@ -1,2 +1,2 @@
|
||||
startscriptdir = $(sysconfdir)/init.d
|
||||
dist_startscript_DATA = xrdp
|
||||
dist_startscript_SCRIPTS = xrdp
|
||||
|
@ -1,2 +1,2 @@
|
||||
startscriptdir = $(sysconfdir)/rc.d
|
||||
dist_startscript_DATA = xrdp
|
||||
dist_startscript_SCRIPTS = xrdp
|
||||
|
@ -65,7 +65,9 @@ xrdp_sesman_LDADD = \
|
||||
sesmansysconfdir=$(sysconfdir)/xrdp
|
||||
|
||||
dist_sesmansysconf_DATA = \
|
||||
sesman.ini \
|
||||
sesman.ini
|
||||
|
||||
dist_sesmansysconf_SCRIPTS = \
|
||||
startwm.sh
|
||||
|
||||
SUBDIRS = \
|
||||
@ -73,7 +75,3 @@ SUBDIRS = \
|
||||
tools \
|
||||
sessvc \
|
||||
chansrv
|
||||
|
||||
# must be tab below
|
||||
install-data-hook:
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/xrdp/startwm.sh
|
||||
|
Loading…
Reference in New Issue
Block a user