Browse Source

Removes template (read-only) so that a non-root user can create it again.

master
freesource 23 years ago
parent
commit
bb9d45e80e
  1. 3
      add-ons/yard/make-debian-X11/make_debian-X11
  2. 3
      yard/scripts/make_debian

3
add-ons/yard/make-debian-X11/make_debian-X11

@ -372,6 +372,7 @@ while (<STDIN>) {
} }
} }
system "rm -f $template_dir/$debian_yard";
open(DEBIAN,">$template_dir/$debian_yard") open(DEBIAN,">$template_dir/$debian_yard")
or die "Couldn't open $template_dir$debian_yard: $!\n"; or die "Couldn't open $template_dir$debian_yard: $!\n";
open(FILERC,"/etc/runlevel.conf") or die "No runlevel.conf: $!\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 # 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"; open(DPKG,"$dpkg_s") or die "Couldn't find dpkg: $!\n";
while (<DPKG>) { while (<DPKG>) {
if (/Status:/) { if (/Status:/) {

3
yard/scripts/make_debian

@ -341,6 +341,7 @@ while (<STDIN>) {
} }
} }
system "rm -f $template_dir/$debian_yard";
open(DEBIAN,">$template_dir/$debian_yard") open(DEBIAN,">$template_dir/$debian_yard")
or die "Couldn't open $template_dir$debian_yard: $!\n"; or die "Couldn't open $template_dir$debian_yard: $!\n";
open(FILERC,"/etc/runlevel.conf") or die "No runlevel.conf: $!\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 # 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"; open(DPKG,"$dpkg_s") or die "Couldn't find dpkg: $!\n";
while (<DPKG>) { while (<DPKG>) {
if (/Status:/) { if (/Status:/) {

Loading…
Cancel
Save