Commit 493e43e1 authored by Dietmar Maurer's avatar Dietmar Maurer

download aplinfo inh postinst script

parent 6f0418b6
......@@ -291,13 +291,7 @@ sub update {
sub load_data {
my $filename = "$aplinfodir/download.proxmox.com";
if (! -f $filename) {
mkdir $aplinfodir;
system("cp /usr/share/doc/pve-manager/aplinfo.dat $filename");
}
my $urls = get_apl_sources();
my $urls = get_apl_sources();
my $list = {};
......
......@@ -40,6 +40,12 @@ case "$1" in
# remove old APL dir
rm -rf /var/lib/pve-manager/apl-available
if test ! -e /var/lib/pve-manager/apl-info/download.proxmox.com; then
mkdir -p /var/lib/pve-manager/apl-info
cp /usr/share/doc/pve-manager/aplinfo.dat /var/lib/pve-manager/apl-info/download.proxmox.com
pveam update || true
fi
if test -f /root/.forward; then
if ! grep -q '|/usr/bin/pvemailforward' /root/.forward; then
echo -e "|/usr/bin/pvemailforward\n$(cat /root/.forward)" >/root/.forward.tmp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment