Module: wine
Branch: master
Commit: 71925fe76cd1b6fdb9e6b95e34dc2709351cafb3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71925fe76cd1b6fdb9e6b95e3…
Author: Kai Blin <kai.blin(a)gmail.com>
Date: Mon Jan 15 15:46:31 2007 +0100
winetools: Fix installing on distributions without a root password.
---
tools/wineinstall | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/wineinstall b/tools/wineinstall
index 26a89f2..5c57f54 100755
--- a/tools/wineinstall
+++ b/tools/wineinstall
@@ -244,9 +244,12 @@ then {
if ! su root -c "$sucommand"
then {
- if ! su root -c "$sucommand"
+ echo
+ echo "Incorrect root password. If you are running Ubuntu or a similar distribution,"
+ echo "'make install' needs to be run via the sudo wrapper, so trying that one now"
+ if ! sudo su root -c "$sucommand"
then {
- echo
+ echo
echo "Either you entered an incorrect password or we failed to"
echo "run '$sucommand' correctly."
echo "If you didn't enter an incorrect password then please"