Skip to content

Commit

Permalink
Replace sbin path in openrc files with path actual path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Stone committed Sep 26, 2023
1 parent caf7daf commit d2639cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions instfiles/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion instfiles/openrc/xrdp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/sbin/openrc-run

command="/usr/local/sbin/xrdp"
command="__BASE__/sbin/xrdp"
pidfile="/run/${RC_SVCNAME}.pid"
2 changes: 1 addition & 1 deletion instfiles/openrc/xrdp-sesman
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/sbin/openrc-run

command="/usr/local/sbin/xrdp-sesman"
command="__BASE__/sbin/xrdp-sesman"
pidfile="/run/${RC_SVCNAME}.pid"

0 comments on commit d2639cd

Please sign in to comment.