From 240bf666931e814bc102e2fe4bc2154be3d889b0 Mon Sep 17 00:00:00 2001 From: freesource Date: Sun, 14 Oct 2001 20:46:52 +0000 Subject: [PATCH] Make sure normal users have access to /usr/sbin so they can use divert. --- add-ons/yard/make-debian-X11/make_debian-X11 | 8 ++++++-- yard/scripts/make_debian | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/add-ons/yard/make-debian-X11/make_debian-X11 b/add-ons/yard/make-debian-X11/make_debian-X11 index bc1d150..e3a55e3 100755 --- a/add-ons/yard/make-debian-X11/make_debian-X11 +++ b/add-ons/yard/make-debian-X11/make_debian-X11 @@ -22,6 +22,10 @@ use strict; use File::Basename; +my $sbin = grep(/\/usr\/sbin/,$ENV{'PATH'}); +if ($sbin == 0) { + $ENV{'PATH'} = "/usr/sbin:" . $ENV{'PATH'}; +} # You will need to get swim at http://www.sourceforge.net/projects/avd my $home = "$ENV{HOME}/.gbootroot"; @@ -795,8 +799,8 @@ sub start_up { home_builder("$home_yard_replacements/etc"); } - print STDERR "Everything is in order, but it never hurts to rebuild swim " - . "with --rebuilddb if you haven't done it in awhile\n"; + #print STDERR "Everything is in order, but it never hurts to rebuild swim " + # . "with --rebuilddb if you haven't done it in awhile\n"; } # end start_up diff --git a/yard/scripts/make_debian b/yard/scripts/make_debian index 74ce151..fbb0b36 100755 --- a/yard/scripts/make_debian +++ b/yard/scripts/make_debian @@ -720,8 +720,8 @@ sub start_up { home_builder("$home_yard_replacements/etc"); } - print "Everything is in order, but it never hurts to rebuild swim " . - "with --rebuilddb\n"; + # print "Everything is in order, but it never hurts to rebuild swim " . + # "with --rebuilddb\n"; } # end start_up