1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-26 01:53:23 -05:00

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

This commit is contained in:
freesource 2001-10-15 22:47:27 +00:00
parent 8b1eaf5c9a
commit bb9d45e80e
2 changed files with 4 additions and 2 deletions

View File

@ -372,6 +372,7 @@ while (<STDIN>) {
}
}
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 (<DPKG>) {
if (/Status:/) {

View File

@ -341,6 +341,7 @@ while (<STDIN>) {
}
}
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 (<DPKG>) {
if (/Status:/) {