diff options
author | ceros7 <ceros7@svn> | 2009-12-11 19:13:33 +0000 |
---|---|---|
committer | ceros7 <ceros7@svn> | 2009-12-11 19:13:33 +0000 |
commit | c1f184fcbe33cfa49e5e082e14d3cf6d8a555b19 (patch) | |
tree | e3538c4cb4176e419eb7937d8c82df540b6080d3 /tools/Linux/packaging/debian | |
parent | 38557abe8efdc2af41ec1b76499626f1382a4cb5 (diff) |
Test for existence of /etc/sudoers in postrm script as well.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25553 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/Linux/packaging/debian')
-rwxr-xr-x | tools/Linux/packaging/debian/xbmc-live.postrm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/Linux/packaging/debian/xbmc-live.postrm b/tools/Linux/packaging/debian/xbmc-live.postrm index 9931130d61..c1e14c80ab 100755 --- a/tools/Linux/packaging/debian/xbmc-live.postrm +++ b/tools/Linux/packaging/debian/xbmc-live.postrm @@ -8,7 +8,7 @@ if [ "$1" = "purge" ]; then SUDOERS_TEMPFILE=$(mktemp -q) # Remove xbmc specific entries from /etc/sudoers - if grep -i -q XBMC-specific /etc/sudoers ; then + if test -r /etc/sudoers && grep -i -q XBMC-specific /etc/sudoers ; then cat /etc/sudoers > $SUDOERS_TEMPFILE sed -i -e "/XBMC/d" $SUDOERS_TEMPFILE |