From bb9d45e80e87c7251d7a05b720633a57953d48a4 Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 15 Oct 2001 22:47:27 +0000 Subject: [PATCH] Removes template (read-only) so that a non-root user can create it again. --- add-ons/yard/make-debian-X11/make_debian-X11 | 3 ++- yard/scripts/make_debian | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/add-ons/yard/make-debian-X11/make_debian-X11 b/add-ons/yard/make-debian-X11/make_debian-X11 index a3fcd38..7aa7639 100755 --- a/add-ons/yard/make-debian-X11/make_debian-X11 +++ b/add-ons/yard/make-debian-X11/make_debian-X11 @@ -372,6 +372,7 @@ while () { } } +system "rm -f $template_dir/$debian_yard"; open(DEBIAN,">$template_dir/$debian_yard") or die "Couldn't open $template_dir$debian_yard: $!\n"; open(FILERC,"/etc/runlevel.conf") or die "No runlevel.conf: $!\n"; @@ -737,7 +738,7 @@ sub start_up { } # Swim has been installed but is removed or purged - my $dpkg_s = "dpkg -s swim|"; + my $dpkg_s = "dpkg -s dswim|"; open(DPKG,"$dpkg_s") or die "Couldn't find dpkg: $!\n"; while () { if (/Status:/) { diff --git a/yard/scripts/make_debian b/yard/scripts/make_debian index edd3f2f..d3f2ece 100755 --- a/yard/scripts/make_debian +++ b/yard/scripts/make_debian @@ -341,6 +341,7 @@ while () { } } +system "rm -f $template_dir/$debian_yard"; open(DEBIAN,">$template_dir/$debian_yard") or die "Couldn't open $template_dir$debian_yard: $!\n"; open(FILERC,"/etc/runlevel.conf") or die "No runlevel.conf: $!\n"; @@ -662,7 +663,7 @@ sub start_up { } # Swim has been installed but is removed or purged - my $dpkg_s = "dpkg -s swim|"; + my $dpkg_s = "dpkg -s dswim|"; open(DPKG,"$dpkg_s") or die "Couldn't find dpkg: $!\n"; while () { if (/Status:/) {