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:
parent
8b1eaf5c9a
commit
bb9d45e80e
@ -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:/) {
|
||||
|
@ -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:/) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user