aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2009-12-03 14:40:00 +0000
committerlcapriotti <lcapriotti@svn>2009-12-03 14:40:00 +0000
commitef80fc8e31d8087e523a3aa6487bd4c017a0bfbd (patch)
treeb8db02b68d13e66b9442e2e62b6aaabdd063901d /tools/Linux
parentc8127c52eacceaa338971030b929deac8343478b (diff)
cat preserves permissions
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25247 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux')
-rwxr-xr-xtools/Linux/packaging/debian/xbmc-live.postrm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Linux/packaging/debian/xbmc-live.postrm b/tools/Linux/packaging/debian/xbmc-live.postrm
index 26b0bfa720..f1516cbab4 100755
--- a/tools/Linux/packaging/debian/xbmc-live.postrm
+++ b/tools/Linux/packaging/debian/xbmc-live.postrm
@@ -9,14 +9,14 @@ if [ "$1" = "purge" ]; then
# Add xbmc to the sudoers file (if not already done)
if ! grep -i -q XBMC-specific /etc/sudoers ; then
- cp -f /etc/sudoers $SUDOERS_TEMPFILE
+ cat /etc/sudoers > $SUDOERS_TEMPFILE
sed -i -e "/XBMC/d" $SUDOERS_TEMPFILE
# Check if sudoers file is ok with visudo and write to /etc/sudoers if
# it is ok, else display a message to the user.
if visudo -c -f $SUDOERS_TEMPFILE >/dev/null 2>&1; then
- cp -f $SUDOERS_TEMPFILE /etc/sudoers
+ cat $SUDOERS_TEMPFILE > /etc/sudoers
else
# TODO: Use debconf for this message.
echo "Couldn't edit /etc/sudoers, must be manually edited."