diff options
author | lcapriotti <lcapriotti@svn> | 2009-12-03 14:37:31 +0000 |
---|---|---|
committer | lcapriotti <lcapriotti@svn> | 2009-12-03 14:37:31 +0000 |
commit | c8127c52eacceaa338971030b929deac8343478b (patch) | |
tree | 1ce5edf1523f3faf57bfe347dcb60a7ddf53addb /tools | |
parent | 98c03d20a59a61be0d08c263d1f20901c3c9f746 (diff) |
force cp
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25246 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/Linux/packaging/debian/xbmc-live.postrm | 4 |
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 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." |