mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Made the install/update/uninstall scripts looking equal.
The deletion of the files in done in the shellscripts to be more flexible. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1022 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -733,15 +733,6 @@ sub removepak {
|
||||
fetchfile("counter.py?ver=$Conf::version&uuid=$Conf::uuid&dpak=$pak&return=$return", "$Conf::mainserver");
|
||||
}
|
||||
if ($return == 0) {
|
||||
open(FILE, "<$Conf::dbdir/rootfiles/$pak");
|
||||
my @file = <FILE>;
|
||||
close(FILE);
|
||||
foreach (@file) {
|
||||
my $line = $_;
|
||||
chomp($line);
|
||||
system("echo \"Removing: $line\" >> $Conf::logdir/uninstall-$pak.log 2>&1");
|
||||
system("cd / && rm -rf $line >> $Conf::logdir/uninstall-$pak.log 2>&1");
|
||||
}
|
||||
unlink("$Conf::dbdir/rootfiles/$pak");
|
||||
unlink("$Conf::dbdir/installed/meta-$pak");
|
||||
cleanup("tmp");
|
||||
|
||||
Reference in New Issue
Block a user