[pkg-remote-commits] [xrdp] 07/10: Remove sudo usage as it is not guaranteed to be installed.

Dominik George natureshadow-guest at moszumanska.debian.org
Fri Dec 15 10:50:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to branch master
in repository xrdp.

commit 21e7ba36918b4ecf1597e346cdc1fe6b4931ad14
Author: Dominik George <nik at naturalnet.de>
Date:   Fri Dec 15 11:47:45 2017 +0100

    Remove sudo usage as it is not guaranteed to be installed.
---
 debian/xrdp-build-pulse-modules | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/xrdp-build-pulse-modules b/debian/xrdp-build-pulse-modules
index 53e61bd..e3a4ba5 100755
--- a/debian/xrdp-build-pulse-modules
+++ b/debian/xrdp-build-pulse-modules
@@ -18,14 +18,14 @@ fi
 TMP=$(mktemp -d)
 PULSE_UPSTREAM_VERSION="$(dpkg-query -W -f='${source:Upstream-Version}' pulseaudio)"
 XRDP_UPSTREAM_VERSION="$(dpkg-query -W -f='${source:Upstream-Version}' xrdp)"
-sudo apt -q update
+apt -q update
 
 # Get sources and build dependencies:
-sudo apt -q install dpkg-dev
+apt -q install dpkg-dev
 
 cd $TMP
 apt -q source pulseaudio xrdp
-sudo apt -q build-dep pulseaudio xrdp
+apt -q build-dep pulseaudio xrdp
 
 # For pulseaudio 'configure' is all what is needed:
 cd pulseaudio-$PULSE_UPSTREAM_VERSION/
@@ -40,8 +40,8 @@ PULSE_DIR = $TMP/pulseaudio-$PULSE_UPSTREAM_VERSION" Makefile
 make
 
 # Copy modules to Pulseaudio modules directory, adjust rights.
-sudo cp *.so /usr/lib/pulse-$PULSE_UPSTREAM_VERSION/modules/
-sudo chmod 644 /usr/lib/pulse-$PULSE_UPSTREAM_VERSION/modules/module-xrdp*
+cp *.so /usr/lib/pulse-$PULSE_UPSTREAM_VERSION/modules/
+chmod 644 /usr/lib/pulse-$PULSE_UPSTREAM_VERSION/modules/module-xrdp*
 
 # Restart xrdp, now with sound enabled.
-sudo service xrdp restart
+service xrdp restart

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-remote/xrdp.git



More information about the pkg-remote-commits mailing list