From d2639cd59fbf5cc06efb88094c1424ab7f2a921d Mon Sep 17 00:00:00 2001 From: Michael Stone Date: Tue, 26 Sep 2023 18:30:38 -0400 Subject: [PATCH] Replace sbin path in openrc files with path actual path. --- instfiles/Makefile.am | 7 +++++++ instfiles/openrc/xrdp | 2 +- instfiles/openrc/xrdp-sesman | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/instfiles/Makefile.am b/instfiles/Makefile.am index 47ccbabde1..f42438df2f 100644 --- a/instfiles/Makefile.am +++ b/instfiles/Makefile.am @@ -107,3 +107,10 @@ install-data-hook: sed -i '' 's|%%PREFIX%%|$(prefix)|g' $(DESTDIR)$(sysconfdir)/rc.d/xrdp \ $(DESTDIR)$(sysconfdir)/rc.d/xrdp-sesman endif + +if XRDP_OPENRC +# must be tab below +install-data-hook: + sed -i 's|__BASE__|$(prefix)|' $(DESTDIR)$(sysconfdir)/init.d/xrdp \ + $(DESTDIR)$(sysconfdir)/init.d/xrdp-sesman +endif diff --git a/instfiles/openrc/xrdp b/instfiles/openrc/xrdp index 6e59f651b5..5c2e71ba2a 100755 --- a/instfiles/openrc/xrdp +++ b/instfiles/openrc/xrdp @@ -1,4 +1,4 @@ #!/sbin/openrc-run -command="/usr/local/sbin/xrdp" +command="__BASE__/sbin/xrdp" pidfile="/run/${RC_SVCNAME}.pid" diff --git a/instfiles/openrc/xrdp-sesman b/instfiles/openrc/xrdp-sesman index c5a8827983..a668aec4ea 100755 --- a/instfiles/openrc/xrdp-sesman +++ b/instfiles/openrc/xrdp-sesman @@ -1,4 +1,4 @@ #!/sbin/openrc-run -command="/usr/local/sbin/xrdp-sesman" +command="__BASE__/sbin/xrdp-sesman" pidfile="/run/${RC_SVCNAME}.pid"