delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)};
$< = $>;
+ # Store keys here
+ $ENV{"GNUPGHOME"} = "/opt/pakfire/etc/.gnupg";
+
require "/opt/pakfire/lib/functions.pl";
my $interactive = 1;
} elsif ("$ARGV[0]" eq "update") {
&Pakfire::makeuuid();
- &Pakfire::senduuid();
&Pakfire::getmirrors("$force");
&Pakfire::dbgetlist("$force");
&Pakfire::getcoredb("$force");
} elsif ("$ARGV[1]" eq "upgrades") {
system("rm -f /etc/fcron.daily/pakfire-upgrade");
}
+ } elsif ("$ARGV[0]" eq "status") {
+ &Pakfire::status;
} else {
&Pakfire::usage;
}