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:
ms
2007-10-28 16:59:00 +00:00
parent 143b812eb3
commit c6cada8c3f
43 changed files with 985 additions and 67 deletions

View File

@@ -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");