From c8127c52eacceaa338971030b929deac8343478b Mon Sep 17 00:00:00 2001 From: lcapriotti Date: Thu, 3 Dec 2009 14:37:31 +0000 Subject: force cp git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25246 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- tools/Linux/packaging/debian/xbmc-live.postrm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/Linux/packaging/debian/xbmc-live.postrm b/tools/Linux/packaging/debian/xbmc-live.postrm index ac0eb6d2c4..26b0bfa720 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 /etc/sudoers $SUDOERS_TEMPFILE + cp -f /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 $SUDOERS_TEMPFILE /etc/sudoers + cp -f $SUDOERS_TEMPFILE /etc/sudoers else # TODO: Use debconf for this message. echo "Couldn't edit /etc/sudoers, must be manually edited." -- cgit v1.2.3